mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
Refs #14675 - Added import of url() function in project template urls.py, added commented sample named url, and converted existing sample patterns to use url().
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15415 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d8c38bd2c9
commit
0ffa39f744
@ -1,16 +1,17 @@
|
|||||||
from django.conf.urls.defaults import patterns, include
|
from django.conf.urls.defaults import patterns, include, url
|
||||||
|
|
||||||
# Uncomment the next two lines to enable the admin:
|
# Uncomment the next two lines to enable the admin:
|
||||||
# from django.contrib import admin
|
# from django.contrib import admin
|
||||||
# admin.autodiscover()
|
# admin.autodiscover()
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
# Example:
|
# Examples:
|
||||||
# (r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),
|
# url(r'^$', '{{ project_name }}.views.home', name='home'),
|
||||||
|
# url(r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),
|
||||||
|
|
||||||
# Uncomment the admin/doc line below to enable admin documentation:
|
# Uncomment the admin/doc line below to enable admin documentation:
|
||||||
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||||
|
|
||||||
# Uncomment the next line to enable the admin:
|
# Uncomment the next line to enable the admin:
|
||||||
# (r'^admin/', include(admin.site.urls)),
|
# url(r'^admin/', include(admin.site.urls)),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user