You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

9 years ago
from django.conf.urls import patterns, include, url
9 years ago
from django.views.generic import TemplateView
9 years ago
from django.contrib import admin
from django.http import HttpResponse
9 years ago
9 years ago
admin.autodiscover()
handler404 = 'basics.views.notfound'
handler500 = 'basics.views.serverror'
handler403 = 'basics.views.forbidden'
handler400 = 'basics.views.badrequest'
9 years ago
urlpatterns = patterns('',
url(
r'^$',
'blog.views.mainpage',
name = 'home'
),
url(
r'^google150e54bda5f96d97',
lambda r: HttpResponse("", mimetype="text/plain")
),
url(
r'^robots\.txt$',
TemplateView.as_view(template_name = 'robots.txt', content_type = 'text/plain')
),
url(
r'^blog/',
include(
'blog.urls',
namespace = 'blog'
)
),
9 years ago
# Uncomment the admin/doc line below to enable admin documentation:
#url(
# r'^admin/doc/',
# include('django.contrib.admindocs.urls')
# ),
url(
r'^admin/',
include(admin.site.urls)
),
url(
r'^',
include(
'basics.urls',
namespace = 'basics'
)
),
9 years ago
)