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 ...@@ -4,8 +4,8 @@ from django.views.generic import TemplateView
from django.contrib import admin from django.contrib import admin
admin.autodiscover() admin.autodiscover()
# custom 404 handle404 = TemplateView.as_view(template_name="404.html")
# custom 500 handle500 = TemplateView.as_view(template_name="500.html")
urlpatterns = patterns('', urlpatterns = patterns('',
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<title>404</title> <title>404 - Page Not Found</title>
<style> <style>
body { body {
text-align: center; text-align: center;
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<title>500 Server Error</title> <title>500 - Internal Server Error</title>
<style> <style>
body { body {
text-align: center; 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