Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #18472 - Added warning regarding set_language / i18n_patterns.

  • Loading branch information...
commit d7816c563b58ed53d49956321d549a16e2b2ebc0 1 parent c59fff7
Simon Meers authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  docs/topics/i18n/translation.txt
6  docs/topics/i18n/translation.txt
@@ -1247,6 +1247,12 @@ Activate this view by adding the following line to your URLconf::
1247 1247
 
1248 1248
 (Note that this example makes the view available at ``/i18n/setlang/``.)
1249 1249
 
  1250
+.. warning::
  1251
+
  1252
+    Make sure that you don't include the above URL within
  1253
+    :func:`~django.conf.urls.i18n.i18n_patterns` - it needs to be
  1254
+    language-independent itself to work correctly.
  1255
+
1250 1256
 The view expects to be called via the ``POST`` method, with a ``language``
1251 1257
 parameter set in request. If session support is enabled, the view
1252 1258
 saves the language choice in the user's session. Otherwise, it saves the

0 notes on commit d7816c5

Please sign in to comment.
Something went wrong with that request. Please try again.