diff options
author | kinitrupti | 2016-10-04 12:01:02 +0530 |
---|---|---|
committer | kinitrupti | 2016-10-04 12:01:02 +0530 |
commit | 15ab83ff1b57dab493ac366d866f3e26765599eb (patch) | |
tree | 0a9364c4c3c8b38182a2bfda3b97f859c084affe /PythonTBC/urls.py | |
parent | c5c3c7b6c4794d960ead6137d251cd9b8f423aa4 (diff) | |
download | Python-TBC-Interface-15ab83ff1b57dab493ac366d866f3e26765599eb.tar.gz Python-TBC-Interface-15ab83ff1b57dab493ac366d866f3e26765599eb.tar.bz2 Python-TBC-Interface-15ab83ff1b57dab493ac366d866f3e26765599eb.zip |
Upgraded to django 1.9
Diffstat (limited to 'PythonTBC/urls.py')
-rw-r--r-- | PythonTBC/urls.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/PythonTBC/urls.py b/PythonTBC/urls.py index 34bc0f6..473dad1 100644 --- a/PythonTBC/urls.py +++ b/PythonTBC/urls.py @@ -1,5 +1,7 @@ from django.conf.urls import patterns, include, url - +import tbc_error_page.views +import commentingapp.views +import django.contrib.sitemaps.views # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() @@ -9,7 +11,7 @@ sitemaps = { 'book': TbcBookSitemap, } -urlpatterns = patterns('', +urlpatterns = [ # Examples: # url(r'^$', 'PythonTBC.views.home', name='home'), # url(r'^PythonTBC/', include('PythonTBC.foo.urls')), @@ -20,12 +22,12 @@ urlpatterns = patterns('', # Uncomment the next line to enable the admin: url(r'^admin', include(admin.site.urls)), url(r'^', include('tbc.urls', namespace='tbc')), - url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}), + url(r'^sitemap\.xml$', django.contrib.sitemaps.views.sitemap, {'sitemaps': sitemaps}), - url(r'^admin-tools/commenting', 'commentingapp.views.commenting', name = 'commenting'), - url(r'^admin-tools/error_page', 'tbc_error_page.views.error', name = 'error_page'), - url(r'^admin-tools/broken_page', 'tbc_error_page.views.broken', name = 'broken_page'), + url(r'^admin-tools/commenting', commentingapp.views.commenting, name = 'commenting'), + url(r'^admin-tools/error_page', tbc_error_page.views.error, name = 'error_page'), + url(r'^admin-tools/broken_page', tbc_error_page.views.broken, name = 'broken_page'), -) +] |