mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-06 02:16:47 +00:00
* crete setting module to split prod and dev configs * fix calendar midmatch * lint imports using isort * doc: add doctrings
11 lines
304 B
Python
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)
|