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

DEBUG must be set to False in production #16

Closed
khatchad opened this issue Feb 17, 2021 · 5 comments
Closed

DEBUG must be set to False in production #16

khatchad opened this issue Feb 17, 2021 · 5 comments
Assignees
Labels
help wanted Extra attention is needed
Milestone

Comments

@khatchad
Copy link
Member

In production, DEBUG must be set to False. In other words, I should see a standard 404 page when visiting https://fathomless-inlet-57767.herokuapp.com/ponder/register/:

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

@tatianacv
Copy link
Member

I have set DEBUG to false in settings.py.

@khatchad
Copy link
Member Author

  1. Can you reference the commit that closes this issue?
  2. To be clear, DEBUG should be set to False in prod but True in dev. Can you confirm that this is the case?

@khatchad khatchad reopened this Feb 18, 2021
@khatchad
Copy link
Member Author

We don't have a separate staging dev area.

@khatchad khatchad added this to the Future milestone Feb 18, 2021
@khatchad
Copy link
Member Author

Ideally, in dev mode (or local), we would have this flag set to true but not in prod. Right now, individual developers have to be careful not to commit settings changes that set this to True in prod.

@khatchad khatchad added the help wanted Extra attention is needed label Feb 18, 2021
khatchad added a commit that referenced this issue Mar 8, 2021
Per #16, we are still in the dev stage.
@y3pio y3pio self-assigned this Feb 8, 2025
@y3pio
Copy link
Collaborator

y3pio commented Feb 12, 2025

Merged #194 -- DEBUG mode is now false by default in deployed/production env.

Additional setup now required to enable DEBUG in local/dev mode. Added instructions to the README on how to do this. If needed, we can also create a run script that does it for us, but closing out this issue for now as the main concern for this was to set DEBUG mode to false in production.

@y3pio y3pio closed this as completed Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants