villafleurie/rental/views/errors.py
Ruidy 780188e7d6
Refactor (#7)
* crete setting module to split prod and dev configs

* fix calendar midmatch

* lint imports using isort

* doc: add doctrings
2020-07-31 08:02:10 +02:00

11 lines
304 B
Python

from django.shortcuts import render
def handler404(request, _):
"""handle 404 errors. Requires a request and an exception."""
return render(request, 'rental/404.html', status=404)
def handler500(request):
"""handle 500 errors."""
return render(request, 'rental/500.html', status=500)