How to test custom 404 and 500 pages on a development server with static files?

Besides creating a web server and doing collectstatic, is there any way to see the exact appearance of my 404 and 500 pages in the development environment using static-corrected files before they can be deployed for production?

See I Created Custom 404 and 500 Pages: Custom Error Viewer Documentation

And I try this on my development server that uses a static page collector: Staticfiles documentation

But the former requires that DEBUG be turned off, and the latter requires that DEBUG be turned on !?

+7
django
source share
1 answer

Look and I will find ... Apologies. There is nothing to watch. The answer, of course, is here ...

stack overflow

manage.py runserver --insecure 
+6
source share

All Articles