Opened 18 years ago
Closed 18 years ago
#2393 closed defect (duplicate)
[patch] AttributeError in django/middleware/cache.py
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Changeset #3395 introduced a bug that raises the following exception
{{{Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/core/servers/basehttp.py", line 272, in run
self.result = application(self.environ, self.start_response)
File "/usr/lib/python2.4/site-packages/django/core/servers/basehttp.py", line 615, in call
return self.application(environ, start_response)
File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 141, in call
self.load_middleware()
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 38, in load_middleware
mw_instance = mw_class()
File "/usr/lib/python2.4/site-packages/django/middleware/cache.py", line 39, in init
self.cache_anonymous_only = settings.get('CACHE_MIDDLEWARE_ANONYMOUS_ONLY', False)
File "/usr/lib/python2.4/site-packages/django/conf/init.py", line 32, in getattr
return getattr(self._target, name)
AttributeError: 'Settings' object has no attribute 'get'
}}}
Attachments (1)
Change History (4)
by , 18 years ago
Attachment: | cache.diff added |
---|
comment:1 by , 18 years ago
Summary: | AttributeError in django/middleware/cache.py → [patch] AttributeError in django/middleware/cache.py |
---|
patch to django/middleware/cache.py