mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Regroupement avec l'erreur 500.
This commit is contained in:
parent
f8796c6d04
commit
8d6439f13b
3 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,7 @@ from django.contrib.auth import views as auth_views
|
||||||
from .views import index, about_page
|
from .views import index, about_page
|
||||||
|
|
||||||
handler500 = 're2o.views.handler500'
|
handler500 = 're2o.views.handler500'
|
||||||
|
handler404 = 're2o.views.handler404'
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^$', index, name='index'),
|
url(r'^$', index, name='index'),
|
||||||
|
|
|
@ -229,3 +229,8 @@ def about_page(request):
|
||||||
def handler500(request):
|
def handler500(request):
|
||||||
"""The handler view for a 500 error"""
|
"""The handler view for a 500 error"""
|
||||||
return render(request, 'errors/500.html')
|
return render(request, 'errors/500.html')
|
||||||
|
|
||||||
|
|
||||||
|
def handler404(request):
|
||||||
|
"""The handler view for a 404 error"""
|
||||||
|
return render(request, 'errors/404.html')
|
||||||
|
|
Loading…
Reference in a new issue