2👍
✅
The import is not even necessary since handler404 is just a variable/setting stored as a string so you can remove it. You just need to provide a full include path in the format app.file.method
which in your case is ankblog.views.not_found
.
Source:stackexchange.com