1π
β
To fix it I added this class (that practically doesnβt do anything) in the : /usr/local/lib/python2.6/dist-packages/django/middleware/http.py
class SetRemoteAddrFromForwardedFor(object):
"""
This middleware has been removed; see the Django 1.1 release notes for
details.
It previously set REMOTE_ADDR based on HTTP_X_FORWARDED_FOR. However, after
investiagtion, it turns out this is impossible to do in a general manner:
different proxies treat the X-Forwarded-For header differently. Thus, a
built-in middleware can lead to application-level security problems, and so
this was removed in Django 1.1
"""
def __init__(self):
import warnings
warnings.warn("SetRemoteAddrFromForwardedFor has been removed. "
"See the Django 1.1 release notes for details.",
category=DeprecationWarning)
raise MiddlewareNotUsed()
π€avatar
2π
You need to track down your fastcgi error log. There should me more detailed information in there.
π€Matt Howell
- [Django]-Wagtail blocks: accessing context and request in overridden get_context
- [Django]-What is my user and pass? Deploy django on AWS EC2 but can not login admin
Source:stackexchange.com