mirror of https://github.com/django/django.git
More URL reversion docs typo fixes.
This commit is contained in:
parent
0921b74e69
commit
0614e99fbd
|
@ -567,9 +567,9 @@ Consider again this URLconf entry::
|
||||||
from django.conf.urls import patterns, url
|
from django.conf.urls import patterns, url
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
#...
|
#...
|
||||||
url(r'^articles/(\d{4})/$', 'news.views.year_archive'),
|
url(r'^articles/(\d{4})/$', 'news.views.year_archive'),
|
||||||
#...
|
#...
|
||||||
)
|
)
|
||||||
|
|
||||||
According to this design, the URL for the archive corresponding to year *nnnn*
|
According to this design, the URL for the archive corresponding to year *nnnn*
|
||||||
|
@ -598,7 +598,7 @@ Or in Python code::
|
||||||
# ...
|
# ...
|
||||||
return HttpResponseRedirect(reverse('news.views.year_archive', args=(year,)))
|
return HttpResponseRedirect(reverse('news.views.year_archive', args=(year,)))
|
||||||
|
|
||||||
If, for some reason, it was decided that the URL where content for yearly
|
If, for some reason, it was decided that the URLs where content for yearly
|
||||||
article archives are published at should be changed then you would only need to
|
article archives are published at should be changed then you would only need to
|
||||||
change the entry in the URLconf.
|
change the entry in the URLconf.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue