python - ImproperlyConfigured at admin -
i've seen question here , trying differents solutions. mean one's refers grappelli because think error around there.
i'm getting error:
module "django.contrib.staticfiles.storage" not define "cachedstaticfiles" attribute/class
this error refers line 10 on grappelli/templates/admin/base.html,
<link href="{% static "grappelli/jquery/ui/css/custom-theme/jquery-ui-1.10.3.custom.min.css" %}"
this urls.py:
urlpatterns = patterns('', url(r'^grappelli/', include('grappelli.urls')), url(r'^admin/', include(admin.site.urls)), )
this settings.py:
debug = true template_debug = debug allowed_hosts = ['localhost'] django.conf.global_settings import template_context_processors tcp template_context_processors = tcp + ( 'django.core.context_processors.request', 'medio.context_processors.basico', ) grappelli_admin_title = 'my_project' installed_apps = ( 'grappelli', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'proyecto', 'userprofile', ) middleware_classes = ( 'django.contrib.sessions.middleware.sessionmiddleware', 'django.middleware.common.commonmiddleware', 'django.middleware.csrf.csrfviewmiddleware', 'django.contrib.auth.middleware.authenticationmiddleware', 'django.contrib.messages.middleware.messagemiddleware', 'django.middleware.clickjacking.xframeoptionsmiddleware', ) root_urlconf = 'medio.urls' wsgi_application = 'medio.wsgi.application' databases = { 'default': { 'engine': 'django.db.backends.mysql', 'name': 'medio2', 'user': 'root', 'password': '', } } language_code = 'en-us' time_zone = 'utc' use_i18n = true use_l10n = true use_tz = true static_url = '/static/' staticfiles_finders = ( 'django.contrib.staticfiles.finders.filesystemfinder', 'django.contrib.staticfiles.finders.appdirectoriesfinder', ) staticfiles_storage = 'django.contrib.staticfiles.storage.cachedstaticfiles'
replace
staticfiles_storage = 'django.contrib.staticfiles.storage.cachedstaticfiles'
with
staticfiles_storage = 'django.contrib.staticfiles.storage.cachedstaticfilesstorage'
Comments
Post a Comment