Commit 8d6439f1 authored by Hugo LEVY-FALK's avatar Hugo LEVY-FALK
Browse files

Regroupement avec l'erreur 500.

parent f8796c6d
......@@ -50,6 +50,7 @@ from django.contrib.auth import views as auth_views
from .views import index, about_page
handler500 = 're2o.views.handler500'
handler404 = 're2o.views.handler404'
urlpatterns = [
url(r'^$', index, name='index'),
......@@ -229,3 +229,8 @@ def about_page(request):
def handler500(request):
"""The handler view for a 500 error"""
return render(request, 'errors/500.html')
def handler404(request):
"""The handler view for a 404 error"""
return render(request, 'errors/404.html')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment