gergelypolonkai-web-django/gergelypolonkaiweb/urls.py

50 lines
1.2 KiB
Python
Raw Normal View History

2013-09-24 13:54:41 +00:00
from django.conf.urls import patterns, include, url
2014-06-20 19:54:15 +00:00
from django.views.generic import TemplateView
2013-09-24 13:54:41 +00:00
from django.contrib import admin
2014-06-20 19:54:15 +00:00
2013-09-24 13:54:41 +00:00
admin.autodiscover()
2014-06-14 17:09:10 +00:00
handler404 = 'basics.views.notfound'
handler500 = 'basics.views.serverror'
handler403 = 'basics.views.forbidden'
handler400 = 'basics.views.badrequest'
2013-09-24 13:54:41 +00:00
urlpatterns = patterns('',
2014-04-21 08:39:43 +00:00
url(
r'^$',
'blog.views.mainpage',
name = 'home'
),
url(
r'^google150e54bda5f96d97',
'basics.views.googlevalidator'
),
url(
r'^robots\.txt$',
TemplateView.as_view(template_name = 'robots.txt', content_type = 'text/plain')
),
url(
r'^blog/',
include(
'blog.urls',
namespace = 'blog'
)
),
2013-09-24 13:54:41 +00:00
# Uncomment the admin/doc line below to enable admin documentation:
2014-04-21 08:39:43 +00:00
#url(
# r'^admin/doc/',
# include('django.contrib.admindocs.urls')
# ),
url(
r'^admin/',
include(admin.site.urls)
),
url(
r'^',
include(
'basics.urls',
namespace = 'basics'
)
),
2013-09-24 13:54:41 +00:00
)