Skip to content

Commit

Permalink
correctly install dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
mosesmc52 committed Apr 19, 2020
1 parent 72f7eea commit 663f59a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import dotenv

if __name__ == "__main__":
dotenv.read_dotenv()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.dev")

from django.core.management import execute_from_command_line
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ dj-database-url==0.5.0
Django==1.11.13
django-annoying==0.9.0
django-celery==3.1.17
django-dotenv==1.4.2
django-filter==0.13.0
django-templated-email==2.3.0
django-localflavor==1.2
Expand Down Expand Up @@ -74,6 +73,7 @@ PyJWT==1.5.0
pymongo==3.2.2
pyparsing==2.1.1
python-dateutil==2.5.2
python-dotenv==0.13.0
pytz==2018.4
PyYAML==3.11
pyzipcode==1.0
Expand Down
4 changes: 1 addition & 3 deletions waterquality/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
"""

import os
import dotenv

from django.core.wsgi import get_wsgi_application

dotenv.read_dotenv(os.path.join(os.path.dirname(os.path.dirname(__file__)), '.env'))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "waterquality.settings")

application = get_wsgi_application()

0 comments on commit 663f59a

Please sign in to comment.