Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7k
Closed
Labels
Milestone
Description
Here_closable_objects was added torendering_attrs59d0a03#diff-21a03cd19b8422c334c33ec8da66e9c8R21
Every rendering attribute is deleted in__getstate__ methodhttps://github.com/django/django/blob/1.7/django/template/response.py#L45
But_closable_objects is used in base response handler:
https://github.com/django/django/blob/1.7/django/core/handlers/base.py#L210
That's why after processing response from cache i get error like this:
Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 85, in run self.result = application(self.environ, self.start_response) File "/Users/web-chib/drf-ussie/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 64, in __call__ return self.application(environ, start_response) File "/Users/web-chib/drf-ussie/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__ response = self.get_response(request) File "/Users/web-chib/drf-ussie/lib/python2.7/site-packages/django/core/handlers/base.py", line 211, in get_response response._closable_objects.append(request)AttributeError: 'Response' object has no attribute '_closable_objects'I don't know, should i recreate this attribute by hand, or that's DRF error?