In ticket #23277, it was decided to show the old `patterns` approach in
the docs, and switch to the new style in the 1.8 docs.
However, the [https://docs.djangoproject.com/en/1.7/topics/http/urls/#url-
namespaces URL Namespaces] section of the URL Dispatcher docs uses the new
style syntax. This could be a bit surprising for users unfamiliarwith the
new syntax in 1.8.
I'm going to open a small pull request which uses the old patterns syntax
everywhere on the URL Dispatcher docs page in 1.7.X.
--
Ticket URL: <https://code.djangoproject.com/ticket/23578>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* needs_better_patch: => 0
* needs_tests: => 0
* owner: nobody => alasdairnicol
* needs_docs: => 0
Old description:
> Django 1.7.X supports using a list of `url()` instances for
> `urlpatterns`.
>
> In ticket #23277, it was decided to show the old `patterns` approach in
> the docs, and switch to the new style in the 1.8 docs.
>
> However, the [https://docs.djangoproject.com/en/1.7/topics/http/urls
> /#url-namespaces URL Namespaces] section of the URL Dispatcher docs uses
> the new style syntax. This could be a bit surprising for users
> unfamiliarwith the new syntax in 1.8.
>
> I'm going to open a small pull request which uses the old patterns syntax
> everywhere on the URL Dispatcher docs page in 1.7.X.
New description:
Django 1.7.X supports using a list of `url()` instances for `urlpatterns`.
In ticket #23277, it was decided to show the old `patterns` approach in
the docs, and switch to the new style in the 1.8 docs.
However, the [https://docs.djangoproject.com/en/1.7/topics/http/urls/#url-
namespaces URL Namespaces] section of the URL Dispatcher docs uses the new
style syntax. This could be a bit surprising for users unfamiliar with the
new syntax in 1.8.
I'm going to open a small pull request which uses the old patterns syntax
everywhere on the URL Dispatcher docs page in 1.7.X.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/23578#comment:1>
* has_patch: 0 => 1
Comment:
Pull request https://github.com/django/django/pull/3295/
--
Ticket URL: <https://code.djangoproject.com/ticket/23578#comment:2>
* component: Uncategorized => Documentation
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/23578#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"74c38bad1d80ff94a973f4c4608011f45e80f2d9"]:
{{{
#!CommitTicketReference repository=""
revision="74c38bad1d80ff94a973f4c4608011f45e80f2d9"
[1.7.x] Fixed #23578 -- Changed examples in docs to use patterns
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23578#comment:4>