-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no more debug, real 404 and 500 pages
- Loading branch information
Showing
7 changed files
with
132 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ env | |
db.sqlite3 | ||
listing_images/ | ||
textbook_images/ | ||
staticfiles/ | ||
*.png | ||
|
||
#image upload locations | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{% extends 'textbook_exchange/base.html' %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<style> | ||
body { | ||
background-image: url("{% static 'textbook_exchange/images/Rotunda.jpg' %}"); | ||
background-repeat: no-repeat; | ||
background-attachment: fixed; | ||
background-position: center; | ||
background-size:cover; | ||
} | ||
.navbar, #footer { | ||
background-color: rgba(32, 44, 80,.5); | ||
} | ||
a:not(#button) { | ||
background-color: transparent !important; | ||
} | ||
#page-container { | ||
background-color: rgba(0,0,0, 0.65) !important; | ||
} | ||
.col-md-8 { | ||
color: white; | ||
} | ||
@media screen and (max-width: 991px) and (min-width: 768px) { | ||
.welcome { | ||
font-size: 37px; | ||
} | ||
.desc { | ||
font-size: 21px; | ||
width: 90% !important; | ||
} | ||
.col-md-8 { | ||
padding-left: 0 !important; | ||
} | ||
} | ||
@media only screen and (max-width: 991px){ | ||
.padding-top50 { | ||
padding: 10px !important; | ||
} | ||
} | ||
@media only screen and (max-width: 767px){ | ||
body { | ||
background-position: top !important; | ||
} | ||
.padding-top30, .desc { | ||
text-align: center !important; | ||
margin: auto !important; | ||
} | ||
.desc { | ||
width: 100% !important; | ||
} | ||
|
||
} | ||
</style> | ||
|
||
<div class="row padding-top30"> | ||
<div class="col-md-8"> | ||
<h1 class="mb-5 welcome">Whoops!</h1> | ||
<h4 class="p-font desc" style="width: 80%">This resource does not exist! Try <a href="javascript:history.back()">navigating back</a> to the previous page or <a href="{% url 'exchange:landing' %}">go back home</a></h4> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{% extends 'textbook_exchange/base.html' %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<style> | ||
body { | ||
background-image: url("{% static 'textbook_exchange/images/Rotunda.jpg' %}"); | ||
background-repeat: no-repeat; | ||
background-attachment: fixed; | ||
background-position: center; | ||
background-size:cover; | ||
} | ||
.navbar, #footer { | ||
background-color: rgba(32, 44, 80,.5); | ||
} | ||
a:not(#button) { | ||
background-color: transparent !important; | ||
} | ||
#page-container { | ||
background-color: rgba(0,0,0, 0.65) !important; | ||
} | ||
.col-md-8 { | ||
color: white; | ||
} | ||
@media screen and (max-width: 991px) and (min-width: 768px) { | ||
.welcome { | ||
font-size: 37px; | ||
} | ||
.desc { | ||
font-size: 21px; | ||
width: 90% !important; | ||
} | ||
.col-md-8 { | ||
padding-left: 0 !important; | ||
} | ||
} | ||
@media only screen and (max-width: 991px){ | ||
.padding-top50 { | ||
padding: 10px !important; | ||
} | ||
} | ||
@media only screen and (max-width: 767px){ | ||
body { | ||
background-position: top !important; | ||
} | ||
.padding-top30, .desc { | ||
text-align: center !important; | ||
margin: auto !important; | ||
} | ||
.desc { | ||
width: 100% !important; | ||
} | ||
|
||
} | ||
</style> | ||
|
||
<div class="row padding-top30"> | ||
<div class="col-md-8"> | ||
<h1 class="mb-5 welcome">Whoops!</h1> | ||
<h4 class="p-font desc" style="width: 80%">There was an internal server error... Please try again later.</h4> | ||
</div> | ||
</div> | ||
{% endblock %} |
10 changes: 0 additions & 10 deletions
10
textbook_exchange/templates/textbook_exchange/404_error.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters