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
SRCT
bookshare
Commits
8fded4ee
Commit
8fded4ee
authored
Apr 20, 2015
by
Daniel W Bond
Browse files
added 403 page
parent
8982d62d
Changes
2
Hide whitespace changes
Inline
Side-by-side
bookshare/settings/urls.py
View file @
8fded4ee
...
...
@@ -10,6 +10,7 @@ from .views import HomepageView, ChartsView
admin
.
autodiscover
()
handle403
=
TemplateView
.
as_view
(
template_name
=
"403.html"
)
handle404
=
TemplateView
.
as_view
(
template_name
=
"404.html"
)
handle500
=
TemplateView
.
as_view
(
template_name
=
"500.html"
)
...
...
bookshare/templates/403.html
0 → 100644
View file @
8fded4ee
<!DOCTYPE html>
<html>
<title>
404
</title>
<style>
body
{
text-align
:
center
;
display
:
-webkit-box
;
display
:
-moz-box
;
display
:
-ms-flexbox
;
display
:
-webkit-flex
;
display
:
flex
;
height
:
100%
;
}
.container
{
margin
:
auto
;
}
h1
{
font-family
:
"Helvetica Neue"
,
"Helvetica"
,
sans-serif
;
margin-top
:
;
}
#squirrels
{
width
:
100%
;
}
#acorn
{
width
:
52px
;
position
:
fixed
;
bottom
:
10px
;
right
:
10px
;
}
</style>
</head>
<body>
<div
class=
"container"
>
<h1>
403 Error - Forbidden
</h1>
<img
id=
"squirrels"
src=
"/static/img/squirrels.png"
>
</div>
<a
href=
"/"
><img
id=
"acorn"
src=
"/static/img/acorn.png"
></a>
</body>
</html>
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