Commit ed2bf2fc authored by Daniel W Bond's avatar Daniel W Bond
Browse files

custom 404 and 500 error pages

parent 10d4ac4d
......@@ -4,8 +4,8 @@ from django.views.generic import TemplateView
from django.contrib import admin
admin.autodiscover()
# custom 404
# custom 500
handle404 = TemplateView.as_view(template_name="404.html")
handle500 = TemplateView.as_view(template_name="500.html")
urlpatterns = patterns('',
......
<!DOCTYPE html>
<html>
<title>404</title>
<title>404 - Page Not Found</title>
<style>
body {
text-align: center;
......
<!DOCTYPE html>
<html>
<title>500 Server Error</title>
<title>500 - Internal Server Error</title>
<style>
body {
text-align: center;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment