gergelypolonkai-web-django/gergelypolonkaiweb/urls.py

55 lines
1.4 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
from django.http import HttpResponse
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',
lambda r: HttpResponse("", mimetype="text/plain")
2014-04-21 08:39:43 +00:00
),
url(
r'^robots\.txt$',
TemplateView.as_view(template_name = 'robots.txt', content_type = 'text/plain')
),
2015-03-13 08:19:02 +00:00
url(
r'^pinterest-26239.html$',
TemplateView.as_view(template_name = 'pinterest-26239.html')
),
2014-04-21 08:39:43 +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:
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
)