Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 0ffa39f744d339756b4743d240f32430b7c35cd4 1 parent d8c38bd
Carl Meyer authored February 04, 2011

Showing 1 changed file with 6 additions and 5 deletions. Show diff stats Hide diff stats

  1. 11  django/conf/project_template/urls.py
11  django/conf/project_template/urls.py
... ...
@@ -1,16 +1,17 @@
1  
-from django.conf.urls.defaults import patterns, include
  1
+from django.conf.urls.defaults import patterns, include, url
2 2
 
3 3
 # Uncomment the next two lines to enable the admin:
4 4
 # from django.contrib import admin
5 5
 # admin.autodiscover()
6 6
 
7 7
 urlpatterns = patterns('',
8  
-    # Example:
9  
-    # (r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),
  8
+    # Examples:
  9
+    # url(r'^$', '{{ project_name }}.views.home', name='home'),
  10
+    # url(r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),
10 11
 
11 12
     # Uncomment the admin/doc line below to enable admin documentation:
12  
-    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  13
+    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
13 14
 
14 15
     # Uncomment the next line to enable the admin:
15  
-    # (r'^admin/', include(admin.site.urls)),
  16
+    # url(r'^admin/', include(admin.site.urls)),
16 17
 )

0 notes on commit 0ffa39f

Please sign in to comment.
Something went wrong with that request. Please try again.