mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #22218 -- Removed conf.urls.patterns() per deprecation timeline.
This commit is contained in:
parent
3f50dc2be5
commit
a25d3ce007
10 changed files with 94 additions and 230 deletions
|
@ -1332,13 +1332,7 @@ Django provides two mechanisms to internationalize URL patterns:
|
|||
Language prefix in URL patterns
|
||||
-------------------------------
|
||||
|
||||
.. function:: i18n_patterns(prefix, pattern_description, ...)
|
||||
|
||||
.. deprecated:: 1.8
|
||||
|
||||
The ``prefix`` argument to ``i18n_patterns()`` has been deprecated and will
|
||||
not be supported in Django 1.10. Simply pass a list of
|
||||
:func:`django.conf.urls.url` instances instead.
|
||||
.. function:: i18n_patterns(*pattern_list)
|
||||
|
||||
This function can be used in your root URLconf and Django will automatically
|
||||
prepend the current active language code to all url patterns defined within
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue