pull/384/head
Piero Toffanin 2018-03-02 10:57:21 -05:00
rodzic 15caeba2b5
commit ad09cd71f5
7 zmienionych plików z 34 dodań i 5 usunięć

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 3.5 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 1.4 KiB

Wyświetl plik

@ -0,0 +1,11 @@
{% extends "app/base.html" %}
{% load settings %}
{% block page-wrapper %}
<div style="text-align: center;">
<h3>404 Page Not Found</h3>
<h5>Are you sure the address is correct?</h5>
<img src="/static/app/img/404.png" alt="404"/>
</div>
{{ SETTINGS.theme.html_after_header|safe }}
{% endblock %}

Wyświetl plik

@ -0,0 +1,11 @@
{% extends "app/base.html" %}
{% load settings %}
{% block page-wrapper %}
<div style="text-align: center;">
<h3>500 Internal Server Error</h3>
<h5>Something happened. The server logs contain more information.</h5>
<img src="/static/app/img/500.png" alt="500"/>
</div>
{{ SETTINGS.theme.html_after_header|safe }}
{% endblock %}

Wyświetl plik

@ -1,5 +0,0 @@
{% extends "app/base.html" %}
{% block content %}
{{ hello }}
{% endblock %}

Wyświetl plik

@ -1,5 +1,7 @@
import sys
from django.conf.urls import url, include
from django.shortcuts import render_to_response
from django.template import RequestContext
from .views import app as app_views, public as public_views
from .plugins import get_url_patterns
@ -30,6 +32,9 @@ urlpatterns = [
# into the static build directories and let nginx serve them?
urlpatterns += get_url_patterns()
handler404 = app_views.handler404
handler500 = app_views.handler500
# Test cases call boot() independently
# Also don't execute boot with celery workers
if not settings.WORKER_RUNNING and not settings.TESTING:

Wyświetl plik

@ -134,3 +134,10 @@ def welcome(request):
'title': 'Welcome',
'firstuserform': fuf
})
def handler404(request):
return render(request, '404.html', status=404)
def handler500(request):
return render(request, '500.html', status=500)