#16003: Admin incompatible with USE_ETAGS = True
-------------------+-------------------------------
 Reporter:  lamby  |          Owner:  nobody
     Type:  Bug    |         Status:  new
Milestone:         |      Component:  Uncategorized
  Version:  SVN    |       Severity:  Normal
 Keywords:         |   Triage Stage:  Unreviewed
Has patch:  0      |  Easy pickings:  0
-------------------+-------------------------------
 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
   111.                         response = callback(request,
 *callback_args, **callback_kwargs)
 File "/srv/www.example.com/example/packages/django/contrib/admin/sites.py"
 in wrapper
   213.                 return self.admin_view(view, cacheable)(*args,
 **kwargs)
 File "/srv/www.example.com/example/packages/django/utils/decorators.py" in
 _wrapped_view
   91.                     response = view_func(request, *args, **kwargs)
 File
 "/srv/www.example.com/example/packages/django/views/decorators/cache.py"
 in _wrapped_view_func
   77.         response = view_func(request, *args, **kwargs)
 File "/srv/www.example.com/example/packages/django/contrib/admin/sites.py"
 in inner
   196.             return view(request, *args, **kwargs)
 File
 "/srv/www.example.com/example/packages/django/views/decorators/cache.py"
 in _wrapped_view_func
   78.         add_never_cache_headers(response)
 File "/srv/www.example.com/example/packages/django/utils/cache.py" in
 add_never_cache_headers
   116.     patch_response_headers(response, cache_timeout=-1)
 File "/srv/www.example.com/example/packages/django/utils/cache.py" in
 patch_response_headers
   105.         response['ETag'] = '"%s"' %
 hashlib.md5(response.content).hexdigest()
 File "/srv/www.example.com/example/packages/django/template/response.py"
 in _get_content
   110.             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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/16003>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to