Opened 14 years ago

Last modified 13 years ago

#16003 closed Bug

Admin incompatible with USE_ETAGS = True — at Initial Version

Reported by: Chris Lamb Owned by: nobody
Component: contrib.admin Version: dev
Severity: Release blocker Keywords: regression
Cc: pterk@…, real.human@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In SVN, the admin does not work with USE_ETAGS = True:

Environment:

Traceback:
File "/srv/www.example.com/example/packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, *callback_args, callback_kwargs)

File "/srv/www.example.com/example/packages/django/contrib/admin/sites.py" in wrapper

  1. return self.admin_view(view, cacheable)(*args, kwargs)

File "/srv/www.example.com/example/packages/django/utils/decorators.py" in _wrapped_view

  1. response = view_func(request, *args, kwargs)

File "/srv/www.example.com/example/packages/django/views/decorators/cache.py" in _wrapped_view_func

  1. response = view_func(request, *args, kwargs)

File "/srv/www.example.com/example/packages/django/contrib/admin/sites.py" in inner

  1. return view(request, *args, kwargs)

File "/srv/www.example.com/example/packages/django/views/decorators/cache.py" in _wrapped_view_func

  1. add_never_cache_headers(response)

File "/srv/www.example.com/example/packages/django/utils/cache.py" in add_never_cache_headers

  1. patch_response_headers(response, cache_timeout=-1)

File "/srv/www.example.com/example/packages/django/utils/cache.py" in patch_response_headers

  1. responseETag = '"%s"' % hashlib.md5(response.content).hexdigest()

File "/srv/www.example.com/example/packages/django/template/response.py" in _get_content

  1. raise ContentNotRenderedError('The response content must be rendered before it can be accessed.')

Exception Type: ContentNotRenderedError at /a/admin/
Exception Value: The response content must be rendered before it can be accessed.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top