Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #30: Implement Custom Error Pages #154

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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