diff options
author | 2021-07-04 21:35:32 -0400 | |
---|---|---|
committer | 2021-07-04 21:35:32 -0400 | |
commit | cb058d85af826077641f7a6b05c07a975122987d (patch) | |
tree | 030c02f91a3cffcc491b848eee25796e7ffb5b23 /manage.py | |
parent | Update templates with new resource urls. (diff) | |
parent | Merge 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-x | manage.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |