Skip to content

Commit

Permalink
add dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Apr 13, 2020
1 parent eba1808 commit 01b7af8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ WsgiUnproxy = "*"
django = "<3.0"
django-simple-captcha = "*"
asgiref = "*"
django-dotenv = "*"

[dev-packages]
pudb = "*"
Expand Down
4 changes: 4 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
import os
import sys

import dotenv

if __name__ == "__main__":
dotenv.read_dotenv()

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")

from django.core.management import execute_from_command_line
Expand Down

0 comments on commit 01b7af8

Please sign in to comment.