gergelypolonkai-web-django/gergelypolonkaiweb/urls.py

23 lines
1013 B
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('',
# Examples:
2013-10-02 11:22:36 +00:00
url(r'^$', 'blog.views.mainpage', name='home'),
url(r'^google150e54bda5f96d97', 'basics.views.googlevalidator'),
2014-06-20 19:54:15 +00:00
url(r'^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type = 'text/plain')),
2013-10-02 11:22:36 +00:00
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:
2013-10-02 11:22:36 +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
)