Unable to perform collectstatic Unable to perform collectstatic python python

Unable to perform collectstatic


Try this,

PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')

Look at https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-STATIC_ROOT


You must have to give path in STATIC_ROOT in settings.py where all your static files are collected as for example:-

STATIC_ROOT = "app-root/repo/wsgi/static"STATIC_URL = '/static/'STATICFILES_DIRS = (    ('assets', 'app-root/repo/wsgi/openshift/static'),    )


you can create 'static' folder in any subfolder and have required files in it.In settings.py add the following lines of code:

PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')STATIC_URL = '/static/'

After running python manage.py collectstatica new static folder will be created in your parent App folder