diff options
Diffstat (limited to 'PythonTBC/urls.py')
-rw-r--r-- | PythonTBC/urls.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/PythonTBC/urls.py b/PythonTBC/urls.py index 34bc0f6..9cae5d6 100644 --- a/PythonTBC/urls.py +++ b/PythonTBC/urls.py @@ -1,15 +1,17 @@ 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() -from sitemap import TbcBookSitemap +from .sitemap import TbcBookSitemap 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'), + url(r'hitcount/', include('hitcount.urls', namespace='hitcount')), +] |