Created
March 28, 2014 21:00
-
-
Save chriskief/9842903 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.views.generic import TemplateView | |
if settings.DEBUG: | |
# enable local preview of error pages | |
urlpatterns += patterns('', | |
(r'^403/$', TemplateView.as_view(template_name="403.html")), | |
(r'^404/$', TemplateView.as_view(template_name="404.html")), | |
(r'^500/$', TemplateView.as_view(template_name="500.html")), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment