[Answer]-Running Gunicorn with Foreman

1👍

Don’t know about why the static files were not being retrieved, but the DEBUG = False 500 error was simply caused by my ALLOWED_HOSTS setting, and fixing that produced no further issues.

0👍

I would try to print out settings while running under gunicorn and see if your media URL is correct and js files are indeed accessible.

As for 500 error it is probably trying to show you 404 page, but you do not have a template for it, so it raises 500, and old django quirk 😉

PS. This all is assuming that you verified that you have correct URL pattern in that error

Leave a comment