Skip to content

Commit

Permalink
Merge pull request #2 from honeydev/add_dotenv
Browse files Browse the repository at this point in the history
Add python-dotenv
  • Loading branch information
astynax committed Sep 16, 2019
2 parents 92fcc2d + 6dee968 commit 7976c72
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.example
@@ -0,0 +1,2 @@
DEBUG=
SECRET_KEY=
4 changes: 4 additions & 0 deletions config/settings.py
@@ -1,5 +1,9 @@
import os

from dotenv import load_dotenv

load_dotenv()

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

SECRET_KEY = os.getenv('SECRET_KEY', 'REPLACE_ME')
Expand Down
11 changes: 10 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Expand Up @@ -7,6 +7,7 @@ authors = ["Your Name <you@example.com>"]
[tool.poetry.dependencies]
python = "^3.7"
django = "^2.2"
python-dotenv = "^0.10.3"

[tool.poetry.dev-dependencies]

Expand Down

0 comments on commit 7976c72

Please sign in to comment.