Ticket #21424: urls.py

File urls.py, 613 bytes (added by gh-david, 10 years ago)

mysite/urls.py

Line 
1from django.conf.urls import patterns, include, url
2
3# Uncomment the next two lines to enable the admin:
4from django.contrib import admin
5admin.autodiscover()
6
7urlpatterns = patterns('',
8 # Examples:
9 # url(r'^$', 'mysite.views.home', name='home'),
10 # url(r'^mysite/', include('mysite.foo.urls')),
11
12 # Uncomment the admin/doc line below to enable admin documentation:
13 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
14
15 # Uncomment the next line to enable the admin:
16 url(r'^polls/', include('polls.urls',namespace="polls")),
17 url(r'^admin/', include(admin.site.urls)),
18
19)
Back to Top