#25964: AttributeError: 'HttpResponse' object has no attribute '_reason_phrase'
------------------------------+--------------------------------------
     Reporter:  Wtower        |                    Owner:  nobody
         Type:  Bug           |                   Status:  closed
    Component:  Core (Other)  |                  Version:  1.9
     Severity:  Normal        |               Resolution:  needsinfo
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+--------------------------------------

Comment (by knbk):

 Did you upgrade this particular deployment to Django 1.9 recently? The
 private `_reason_phrase` attribute has been added in 1.9, and
 `HttpResponse.reason_phrase` has been changed to a property. If you have a
 cached `HttpResponse` from before 1.9, the unpickled response will not
 contain the `_reason_phrase` attribute, and result in this traceback. The
 solution is to clear your cache, as documented in the
 [https://docs.djangoproject.com/en/1.9/howto/upgrade-version/#deployment
 upgrade guide].

--
Ticket URL: <https://code.djangoproject.com/ticket/25964#comment:5>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.4a0640063039e726f71fb7180e949608%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to