#2552: [contrib] get IP from X-Forwarded-For
-----------------------------+--------------------------------------
     Reporter:  ian@…        |                    Owner:  adrian
         Type:  enhancement  |                   Status:  closed
    Component:  Metasystem   |                  Version:
     Severity:  normal       |               Resolution:  fixed
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+--------------------------------------
Changes (by Oliver):

 * ui_ux:   => 0
 * easy:   => 0


Comment:

 just for the one who drop here from a google request, the fix saying it's
 in middleware/http.py means that you have to use the following syntax to
 use this middleware (which fix the IP properly using HTTP header X
 -Forwarded-For if present) :


 {{{
  MIDDLEWARE_CLASSES = (
   ...
   'django.middleware.http.FixIP',
  )
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/2552#comment:3>
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