Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache 500 error with debug = false #258

Open
Emil-G opened this issue Nov 28, 2018 · 2 comments
Open

Apache 500 error with debug = false #258

Emil-G opened this issue Nov 28, 2018 · 2 comments
Labels

Comments

@Emil-G
Copy link
Contributor

Emil-G commented Nov 28, 2018

Hi,

When copying the Sample project and doing two changes to the settings.py:
changing debug:
DEBUG = False
allowing hosts:
ALLOWED_HOSTS = ['*']

and starting that with Apache if fails with a 500 internal server error. Works when debug = true. Looks like there could be a lot of different reasons as to why this is happening.
Any clue into why?

@tobami
Copy link
Owner

tobami commented Dec 13, 2018

Is this fixed by #257?

@tobami tobami added the BUG label Dec 13, 2018
@Emil-G
Copy link
Contributor Author

Emil-G commented Dec 13, 2018

@tobami : No, #257 is needed to get the application to load on Apache, it wont work without changing that one.
From what I could understand, DEBUG = True ignores any strict checks/validation of the code, so when setting False, it fails. However, I don't have any idea as to which part of code that it failing the checks. It was just a clean git pull from master, so no customization was done here (except for the Django loading change introduced in 1.7 I belive.)
I did this setup as a favor for a dev in my company, he did not care with it running in Debug mode. So you can just close this unless you want to debug where it fails the Django validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants