The error (when running the django runserver command):
ImproperlyConfigured: The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting
I don't really use django static (this is mostly and api server) and I just want django debug to debug and explain
my sql queries. So what I have is:
STATIC_DIRECTORY = '/'
MEDIA_DIRECTORY = '/media/'
STATIC_URL = S3_URL + STATIC_DIRECTORY
MEDIA_URL = S3_URL + MEDIA_DIRECTORY
STATICFILES_STORAGE = 'server.s3utils.StaticRootS3BotoStorage'
DEFAULT_FILE_STORAGE = 'server.s3utils.MediaRootS3BotoStorage'
STATIC_ROOT = 'staticfiles'
STATICFILES_DIRS = (
abs_path('staticfiles'),
# ABS_PATH('/static/'), #D either
)oesn't work either
)
EDIT: If I just remove STATICFILES_DIRS
the errors changes:
TypeError at /admin/ Error when calling the metaclass bases function() argument 1 must be code, not str Request Method: GET Request URL: http://localhost:8000/admin/ Django Version: 1.6.2 Exception Type: TypeError Exception Value: Error when calling the metaclass bases function() argument 1 must be code, not str
I also tried as one of the answers suggested to add
if settings.DEBUG:
import debug_toolbar
urlpatterns += patterns('',
url(r'^__debug__/', include(debug_toolbar.urls)),
)
Doesn't help..
I guess that I'm missing something very simple (but annoying) I'll be glad for help with this.