Commit 9cc339d7 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Added 500 error page.

parent 230e1e62
......@@ -5,6 +5,7 @@ from django.contrib import auth
admin.autodiscover()
handler404 = 'website.views.error_404'
error500 = 'website.views.error_500'
urlpatterns = patterns('website.views',
......
{% extends 'layouts/base.html' %}
{% block title %}
HNRS 110 • Error: Page Not Found
{% endblock %}
{% block content %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-lg-10 col-lg-offset-1 text-center">
<h1>Error 500</h1>
<p class="lead">The server made a mistake. Please contact an <a href="mailto:jrouly@gmu.edu">administrator</a>.</p>
</div>
</div>
</div>
{% endblock %}
......@@ -27,6 +27,11 @@ def error_404(request):
},
)
def error_500(request):
return render(request, '500.html', {
},
)
@login_required
def submit_question(request):
if request.method == 'POST':
......
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