[Fixed]-Django 1.10 404.html template not found

1👍

you need override ‘handler404’ variable, add this to urls.py

from django.conf.urls import handler404

handler404 = 'your_app.views.404'

https://docs.djangoproject.com/en/1.10/topics/http/views/#customizing-error-views

0👍

I guess you have to specify route for your 404.html template, or use from django shortcuts ‘get_object_or_404’ to handle error 404.

Leave a comment