dpaste/dpaste/urls/__init__.py

13 lines
496 B
Python
Raw Normal View History

from django.conf.urls.defaults import url, patterns, include
from django.views.generic import TemplateView
urlpatterns = patterns(
'',
url(r'^about/$', TemplateView.as_view(template_name='dpaste/about.html'), name='about'),
url(r'^', include('dpaste.urls.dpaste_api')),
url(r'^', include('dpaste.urls.dpaste')),
)
# Custom error handlers which load `dpaste/<code>.html` instead of `<code>.html`
handler404 = 'dpaste.views.page_not_found'
handler500 = 'dpaste.views.server_error'