villafleurie/rental/views/errors.py

9 lines
217 B
Python

from django.shortcuts import render
def handler404(request, exception):
return render(request, 'rental/404.html', status=404)
def handler500(request):
return render(request, 'rental/500.html', status=500)