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

Deployed version is in DEBUG mode #120

Open
IoannisNezis opened this issue Nov 26, 2024 · 0 comments
Open

Deployed version is in DEBUG mode #120

IoannisNezis opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@IoannisNezis
Copy link
Collaborator

IoannisNezis commented Nov 26, 2024

Hey,
i just noticed that the deployed version of qlever ui on https://qlever.cs.uni-freiburg.de is in DEBUG mode:

replicate

20241126_10h30m11s_grim

fix

Set the Environment variable QLEVERUI_DEBUG to False:

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env.bool('QLEVERUI_DEBUG', default=True)

or change the shadowed settings_local.py file in prod:

try:
    from .settings_local import *
    print("Loaded settings_local.py")
except ImportError:
    pass

suggestion

To avoid this issue, i set DEBUG to default to False and override it in development for my applications.
This requires the developer to know to set the environment variable in the setup...
Thoughts?

@IoannisNezis IoannisNezis added the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant