Skip to content

Commit

Permalink
Update spacing in copied code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca committed Feb 3, 2016
1 parent ff133b2 commit d34819d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from tracpro import load_env


load_env.load_env()

if __name__ == "__main__":
Expand Down
1 change: 1 addition & 0 deletions tracpro/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from . import load_env


load_env.load_env()

# set the default Django settings module for the 'celery' program.
Expand Down
3 changes: 2 additions & 1 deletion tracpro/load_env.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from os.path import dirname, join

import dotenv


def load_env():
"Get the path to the .env file and load it."
"""Get the path to the .env file and load it."""
project_dir = dirname(dirname(__file__))
dotenv.read_dotenv(join(project_dir, '.env'))
1 change: 1 addition & 0 deletions tracpro/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from . import load_env


load_env.load_env()

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tracpro.settings")
Expand Down

0 comments on commit d34819d

Please sign in to comment.