Ticket #15700: docs.diff

File docs.diff, 780 bytes (added by Camilo Nova, 13 years ago)
  • docs/topics/i18n/internationalization.txt

    diff --git a/docs/topics/i18n/internationalization.txt b/docs/topics/i18n/internationalization.txt
    index 9fd7662..232f3cb 100644
    a b Activate this view by adding the following line to your URLconf::  
    788788
    789789(Note that this example makes the view available at ``/i18n/setlang/``.)
    790790
     791Make sure you have this middleware in your settings:
     792
     793    MIDDLEWARE_CLASSES = (
     794        ...
     795        'django.middleware.locale.LocaleMiddleware',
     796        ...
     797    )
     798
    791799The view expects to be called via the ``POST`` method, with a ``language``
    792800parameter set in request. If session support is enabled, the view
    793801saves the language choice in the user's session. Otherwise, it saves the
Back to Top