Django

Code

Ticket #4764: middleware.diff

File middleware.diff, 0.8 kB (added by Simon G. <dev@simon.net.nz>, 1 year ago)
  • django_src/docs/middleware.txt

    old new  
    116116``HTTP_X_FORWARDED_FOR``, that means anybody can "fake" their IP address. Only 
    117117use this when you can absolutely trust the value of ``HTTP_X_FORWARDED_FOR``. 
    118118 
     119django.middleware.locale.LocaleMiddleware 
     120----------------------------------------- 
     121 
     122Enables language selection based on data from the request allowing each user 
     123to have a custom language preferences. See the `internationalization documentation`_. 
     124 
     125.. _`internationalization documentation`: ../i18n/#how-django-discovers-language-preference 
     126 
    119127django.contrib.sessions.middleware.SessionMiddleware 
    120128---------------------------------------------------- 
    121129