Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

django

Aside from setting up a webserver and doing collectstatic, is there any way I can see the exact look of my 404 and 500 pages in the development environment with the currect static files, before it gets deployed to production?

See I built custom 404 and 500 pages as per: Customised Error Views Documentation

And I try it out on my development server which is using the static pages collecter thingy: Staticfiles documentation

But the former requires DEBUG be OFF and the latter requires DEBUG be ON!?

like image 397
John Mee Avatar asked Aug 02 '13 00:08

John Mee


1 Answers

Seek and I shall find... Apologies. Nothing to see here. The answer is, of course, here...

https://stackoverflow.com/a/7639983/75033

manage.py runserver --insecure
like image 62
John Mee Avatar answered Sep 18 '22 14:09

John Mee