mirror of https://github.com/django/django.git
Fixed two typos in docs/url_dispatch.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
69d6bd7af3
commit
aa3712bef0
|
@ -300,7 +300,7 @@ Old::
|
||||||
|
|
||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
|
|
||||||
urlpatterns = patterns( ''
|
urlpatterns = patterns('',
|
||||||
(r'^/?$', 'django.views.generic.date_based.archive_index'),
|
(r'^/?$', 'django.views.generic.date_based.archive_index'),
|
||||||
(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', 'django.views.generic.date_based.archive_month'),
|
(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', 'django.views.generic.date_based.archive_month'),
|
||||||
(r'^tag/(?P<tag>\w+)/$', 'weblog.views.tag'),
|
(r'^tag/(?P<tag>\w+)/$', 'weblog.views.tag'),
|
||||||
|
@ -310,7 +310,7 @@ New::
|
||||||
|
|
||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
|
|
||||||
urlpatterns = patterns('django.views.generic.date_based'
|
urlpatterns = patterns('django.views.generic.date_based',
|
||||||
(r'^/?$', 'archive_index'),
|
(r'^/?$', 'archive_index'),
|
||||||
(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$','archive_month'),
|
(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$','archive_month'),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue