aboutsummaryrefslogtreecommitdiffstats
path: root/backend/constants.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-02-19 09:00:46 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-02-19 09:00:46 +0300
commit7c01270f3e95c7eab12219714f7a27caaf33cacc (patch)
treefee7e32da8b8d6a56e2081c52edb2df9ff5f8166 /backend/constants.py
parentMerge pull request #56 from python-discord/dependabot/pip/motor-2.3.1 (diff)
Adds Production Constant
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'backend/constants.py')
-rw-r--r--backend/constants.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/constants.py b/backend/constants.py
index fedab64..af25d84 100644
--- a/backend/constants.py
+++ b/backend/constants.py
@@ -10,6 +10,8 @@ FRONTEND_URL = os.getenv("FRONTEND_URL", "https://forms.pythondiscord.com")
DATABASE_URL = os.getenv("DATABASE_URL")
MONGO_DATABASE = os.getenv("MONGO_DATABASE", "pydis_forms")
+PRODUCTION = os.getenv("PRODUCTION", "True").lower() != "false"
+
OAUTH2_CLIENT_ID = os.getenv("OAUTH2_CLIENT_ID")
OAUTH2_CLIENT_SECRET = os.getenv("OAUTH2_CLIENT_SECRET")
OAUTH2_REDIRECT_URI = os.getenv(