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
230e1e62
Commit
230e1e62
authored
Dec 09, 2013
by
Jean Michel Rouly
Browse files
Added 404 page.
parent
c861cbb2
Changes
3
Hide whitespace changes
Inline
Side-by-side
researchquestions/settings/urls.py
View file @
230e1e62
...
...
@@ -4,6 +4,8 @@ from django.contrib import auth
admin
.
autodiscover
()
handler404
=
'website.views.error_404'
urlpatterns
=
patterns
(
'website.views'
,
#### STATIC PAGES ####
...
...
researchquestions/templates/404.html
0 → 100644
View file @
230e1e62
{% 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 %}
researchquestions/website/views.py
View file @
230e1e62
...
...
@@ -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'
:
...
...
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