mirror of https://github.com/django/django.git
Merge pull request #1255 from camilonova/patch-2
Made URL patterns consistent in docs/ref/contrib/flatpages.txt
This commit is contained in:
commit
a643e4d200
|
@ -47,7 +47,7 @@ Then either:
|
||||||
3. Add an entry in your URLconf. For example::
|
3. Add an entry in your URLconf. For example::
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
('^pages/', include('django.contrib.flatpages.urls')),
|
(r'^pages/', include('django.contrib.flatpages.urls')),
|
||||||
)
|
)
|
||||||
|
|
||||||
or:
|
or:
|
||||||
|
@ -74,7 +74,7 @@ There are several ways to include the flat pages in your URLconf. You can
|
||||||
dedicate a particular path to flat pages::
|
dedicate a particular path to flat pages::
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
('^pages/', include('django.contrib.flatpages.urls')),
|
(r'^pages/', include('django.contrib.flatpages.urls')),
|
||||||
)
|
)
|
||||||
|
|
||||||
You can also set it up as a "catchall" pattern. In this case, it is important
|
You can also set it up as a "catchall" pattern. In this case, it is important
|
||||||
|
|
Loading…
Reference in New Issue