Base templates
This commit is contained in:
parent
76ed93ff33
commit
5610ade1fe
19 changed files with 426 additions and 2 deletions
23
photo21/templates/404.html
Normal file
23
photo21/templates/404.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<div class="card text-white bg-secondary">
|
||||
<h3 class="card-header text-center">
|
||||
{% trans "Page not found" %}
|
||||
</h3>
|
||||
<div class="card-body">
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
The requested path <code>{{ request_path }}</code> was not found on the server.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
{% if exception != "Resolver404" %}
|
||||
<p>{% trans "Exception message:" %} {{ exception }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue