School is a twelve-year jail sentence where bad habits are the only curriculum truly learned.
John Taylor Gatto
"Edit your settings.py file
"Edit your settings.py file to include django.middleware.http.SetRemoteAddrFromForwardedFor in MIDDLEWARE_CLASSES. This allows your Django application to use the real IP address of the client instead of 127.0.0.1 from your nginx proxy. It sets Django's request.META['REMOTE_ADDR'] to be request.META['HTTP_X_FORWARDED_FOR'] which we set above in nginx's proxy.conf."
Source: http://www.saltycrane.com/blog/2009/04/notes-using-nginx-mod_python-and-...
Wed, 2009-07-29 07:50 — Nick
Also visit
www.flickr.com
This is a Flickr badge showing public photos and videos from alexisbellido. Make your own badge here.


Recent comments
19 weeks 1 day ago
19 weeks 2 days ago
19 weeks 5 days ago
20 weeks 6 days ago
22 weeks 3 days ago
24 weeks 1 day ago
24 weeks 4 days ago
26 weeks 15 hours ago
26 weeks 15 hours ago
26 weeks 4 days ago