Sunday, 10 February 2013

"The STATICFILES_DIRS setting should " django.core.exceptions.ImproperlyConfigured: The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting

The problem is that you have your STATIC_ROOT as one of the STATICFILES_DIRS. The STATIC_ROOT directory should be empty, that is where all the static files from different places will be gathered when you run collectstatic. You should probably create a static directory under the myapp directory and move all your static files there. Leave the STATIC_ROOT setting as you have it now, and don't specify STATICFILES_DIRS. By default django looks in static directories under all apps in INSTALLED_APPS. 

For more information please refer this discussion:

No comments:

Post a Comment