This repository has been archived by the owner on Jan 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from tejas15802/master
Attempting to fix error handling
- Loading branch information
Showing
6 changed files
with
163 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -22,3 +22,4 @@ db.sqlite3 | |
.vscode | ||
vir | ||
python3 | ||
mysite.log |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<html> | ||
<style> | ||
@import url('https://fonts.googleapis.com/css?family=Nunito+Sans'); | ||
:root { | ||
--blue: #0e0620; | ||
--white: #fff; | ||
} | ||
|
||
html, | ||
body { | ||
height: 100%; | ||
} | ||
|
||
body { | ||
background: url("https://wallpapercave.com/wp/wp4194085.png") no-repeat left top; | ||
background-size: cover; | ||
overflow: hidden; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-family: "Nunito Sans"; | ||
color: var(--blue); | ||
font-size: 1em; | ||
} | ||
|
||
ul { | ||
list-style-type: none; | ||
padding-inline-start: 35px; | ||
} | ||
|
||
h1 { | ||
font-size: 7.5em; | ||
margin: 15px 0px; | ||
font-weight: bold; | ||
} | ||
|
||
h2 { | ||
font-weight: bold; | ||
} | ||
|
||
@media screen and (max-width:768px) { | ||
body { | ||
display: block; | ||
} | ||
.container { | ||
margin-top: 70px; | ||
margin-bottom: 70px; | ||
} | ||
} | ||
</style> | ||
<h< class="col-md-6 align-self-center"> | ||
<h1 style="color:#fff;">Error "404"</h1style> | ||
<h2 style="color:#fff;"> You're lost.</h2> | ||
<h3 style="color:#fff;">The page you are looking for does not exist.</h3> | ||
<h3 style="color:#fff;"> But you can click the button below to go back to the homepage.</h3> | ||
</div> | ||
<a class="btn" type="submit" href="{% url 'home' %}" style="text-align:center; background-color:#fff;border-radius:30px;border-color:#fff;width:150px;height:40px;padding:10px;font-weight:bold;font-family:Nunito Sans;border: none;font-size:medium;letter-spacing: 2.5px;">HOME</a> | ||
</div> | ||
|
||
</html> |
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,61 @@ | ||
<html> | ||
<style> | ||
@import url('https://fonts.googleapis.com/css?family=Nunito+Sans'); | ||
:root { | ||
--blue: #0e0620; | ||
--white: #fff; | ||
} | ||
|
||
html, | ||
body { | ||
height: 100%; | ||
} | ||
|
||
body { | ||
background: url("https://wallpapercave.com/wp/wp4194085.png") no-repeat left top; | ||
background-size: cover; | ||
overflow: hidden; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-family: "Nunito Sans"; | ||
color: var(--blue); | ||
font-size: 1em; | ||
} | ||
|
||
ul { | ||
list-style-type: none; | ||
padding-inline-start: 35px; | ||
} | ||
|
||
h1 { | ||
font-size: 7.5em; | ||
margin: 15px 0px; | ||
font-weight: bold; | ||
} | ||
|
||
h2 { | ||
font-weight: bold; | ||
} | ||
|
||
@media screen and (max-width:768px) { | ||
body { | ||
display: block; | ||
} | ||
.container { | ||
margin-top: 70px; | ||
margin-bottom: 70px; | ||
} | ||
} | ||
</style> | ||
<h class="col-md-6 align-self-center"> | ||
<h1 style="color:#fff;">Error "500"</h1> | ||
<h2 style="color:#fff;"> Internal Server Error.</h2> | ||
<h3 style="color:#fff;">Sorry, something went wrong on our end. We are currently trying to fix the problem.</h3> | ||
<h3 style="color:#fff;"> But you can click the button below to go back to the homepage.</h3> | ||
<a class="btn" type="submit" href="{% url 'home' %}" style="text-align:center; background-color:#fff;border-radius:30px;border-color:#fff;width:150px;height:40px;padding:10px;font-weight:bold;font-family:Nunito Sans;border: none;font-size:medium;letter-spacing: 2.5px;">HOME</a> | ||
</h> | ||
|
||
</div> | ||
|
||
</html> |
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