Skip to content

Commit fbd4bd7

Browse files
committed
dotenv
1 parent cadb336 commit fbd4bd7

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

manage.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
import os
33
import sys
44

5+
# In production environments you might want to copy this file next to you .env and run
6+
# management commands from there. In case, uncomment these lines on the copy:
7+
# from dotenv import load_dotenv
8+
# load_dotenv()
9+
510
if __name__ == "__main__":
611
# Line commented (force settings file):
712
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangosnippets.settings.development")

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
'plotly>=5.10.0',
3838
'kaleido>=0.2.1', # required by plotly to save images
3939
'gunicorn>=21.2.0', # production server (not necessary local browser testing, but harmless)
40+
'python-dotenv>=1.2.2' # same as above (might be useful if we use .env in dev mode)
4041
# test packages:
4142
'pytest',
4243
'pytest-django>=3.4.8',

0 commit comments

Comments
 (0)