Commit 230e1e62 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Added 404 page.

parent c861cbb2
......@@ -4,6 +4,8 @@ from django.contrib import auth
admin.autodiscover()
handler404 = 'website.views.error_404'
urlpatterns = patterns('website.views',
#### STATIC PAGES ####
......
{% 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 404</h1>
<p class="lead">Your content was not found. Sorry.</p>
</div>
</div>
</div>
{% endblock %}
......@@ -22,6 +22,11 @@ def help(request):
},
)
def error_404(request):
return render(request, '404.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