Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
research-questions
Commits
9cc339d7
Commit
9cc339d7
authored
Dec 09, 2013
by
Jean Michel Rouly
Browse files
Added 500 error page.
parent
230e1e62
Changes
3
Hide whitespace changes
Inline
Side-by-side
researchquestions/settings/urls.py
View file @
9cc339d7
...
...
@@ -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'
,
...
...
researchquestions/templates/500.html
0 → 100644
View file @
9cc339d7
{% 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 %}
researchquestions/website/views.py
View file @
9cc339d7
...
...
@@ -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'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment