Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roomlist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
roomlist
Commits
ed2bf2fc
Commit
ed2bf2fc
authored
Jan 11, 2015
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
custom 404 and 500 error pages
parent
10d4ac4d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
roomlist/settings/urls.py
roomlist/settings/urls.py
+2
-2
roomlist/templates/404.html
roomlist/templates/404.html
+1
-1
roomlist/templates/500.html
roomlist/templates/500.html
+1
-1
No files found.
roomlist/settings/urls.py
View file @
ed2bf2fc
...
...
@@ -4,8 +4,8 @@ from django.views.generic import TemplateView
from
django.contrib
import
admin
admin
.
autodiscover
()
# custom 404
# custom 500
handle404
=
TemplateView
.
as_view
(
template_name
=
"404.html"
)
handle500
=
TemplateView
.
as_view
(
template_name
=
"500.html"
)
urlpatterns
=
patterns
(
''
,
...
...
roomlist/templates/404.html
View file @
ed2bf2fc
<!DOCTYPE html>
<html>
<title>
404
</title>
<title>
404
- Page Not Found
</title>
<style>
body
{
text-align
:
center
;
...
...
roomlist/templates/500.html
View file @
ed2bf2fc
<!DOCTYPE html>
<html>
<title>
500 Server Error
</title>
<title>
500
- Internal
Server Error
</title>
<style>
body
{
text-align
:
center
;
...
...
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