2013-03-20 00:06:26 +11:00
|
|
|
from django.conf.urls.defaults import url, patterns, include
|
2013-03-20 00:46:06 +11:00
|
|
|
from django.views.generic import TemplateView
|
2013-03-20 00:06:26 +11:00
|
|
|
|
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2013-03-20 00:46:06 +11:00
|
|
|
url(r'^about/$', TemplateView.as_view(template_name='dpaste/about.html'), name='about'),
|
2013-03-20 00:06:26 +11:00
|
|
|
url(r'^', include('dpaste.urls.dpaste_api')),
|
|
|
|
url(r'^', include('dpaste.urls.dpaste')),
|
|
|
|
)
|
2013-03-20 00:18:43 +11:00
|
|
|
|
|
|
|
# Custom error handlers which load `dpaste/<code>.html` instead of `<code>.html`
|
|
|
|
handler404 = 'dpaste.views.page_not_found'
|
|
|
|
handler500 = 'dpaste.views.server_error'
|