Skip to content

Commit

Permalink
Fix phpmyadmin#30: Implement Custom Error Pages
Browse files Browse the repository at this point in the history
Signed-off-by: Vimal K <vimalinfo10@gmail.com>
  • Loading branch information
vimalMK committed Nov 3, 2022
1 parent 18e7f46 commit a83e796
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion pmaweb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
SECRET_KEY = 'n$6di6axa*m5)$%yzhl6xhe%^b4t^)6#sbz_b5_7&ga@12(+_h'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False

ALLOWED_HOSTS = (
'127.0.0.1',
Expand Down Expand Up @@ -172,3 +172,5 @@

GITHUB_USER = 'phpmyadmin-bot'
GITHUB_TOKEN = None

COMPRESS_ENABLED = os.environ.get('COMPRESS_ENABLED', False)
8 changes: 8 additions & 0 deletions pmaweb/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ div.subscribe {
.sfc-logo {
text-align: center;
}

footer {
display: table;
text-align: center;
margin-left: auto;
margin-right: auto;
padding-right:50px;
}
footer ul {
padding:0;
margin:1em;
Expand Down
12 changes: 7 additions & 5 deletions pmaweb/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@

{% block content %}

<h2>Page Not Found</h2>

<h3>
<svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>
Page Not Found
</h3>

<p>
The requested URL was not found on this server. This might have several
causes, but if you found this link on some page, you should notify its author
that it no longer works. Please follow to our <a href="{% url 'home' %}">main
The requested URL was not found on this server. Please visit our <a href="{% url 'home' %}">main
page</a> to find information you were looking for or use the navigation bar above.
</p>

<p>If you want to report the missing page. Please visit <a href="{% url 'support' %}">Support</a> </p>
<script type="text/javascript">
var GOOG_FIXURL_LANG = 'en';
var GOOG_FIXURL_SITE = 'https://www.phpmyadmin.net/';
Expand Down

0 comments on commit a83e796

Please sign in to comment.