Skip to content

Commit d7816c5

Browse files
committed
Fixed django#18472 - Added warning regarding set_language / i18n_patterns.
1 parent c59fff7 commit d7816c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/topics/i18n/translation.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,12 @@ Activate this view by adding the following line to your URLconf::
12471247

12481248
(Note that this example makes the view available at ``/i18n/setlang/``.)
12491249

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+
12501256
The view expects to be called via the ``POST`` method, with a ``language``
12511257
parameter set in request. If session support is enabled, the view
12521258
saves the language choice in the user's session. Otherwise, it saves the

0 commit comments

Comments
 (0)