aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py
diff options
context:
space:
mode:
authorGravatar swfarnsworth <[email protected]>2021-07-04 21:35:32 -0400
committerGravatar swfarnsworth <[email protected]>2021-07-04 21:35:32 -0400
commitcb058d85af826077641f7a6b05c07a975122987d (patch)
tree030c02f91a3cffcc491b848eee25796e7ffb5b23 /manage.py
parentUpdate templates with new resource urls. (diff)
parentMerge pull request #547 from Numerlor/docker-override (diff)
Merge branch 'main' of https://github.com/python-discord/site into swfarnsworth/smarter-resources/new-resources
Diffstat (limited to 'manage.py')
-rwxr-xr-xmanage.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/manage.py b/manage.py
index 71af23c4..d21546e1 100755
--- a/manage.py
+++ b/manage.py
@@ -17,6 +17,11 @@ DEFAULT_ENVS = {
"DEFAULT_BOT_API_KEY": "badbot13m0n8f570f942013fc818f234916ca531",
}
+try:
+ import dotenv
+ dotenv.load_dotenv()
+except ModuleNotFoundError:
+ pass
for key, value in DEFAULT_ENVS.items():
os.environ.setdefault(key, value)