Skip to content
Snippets Groups Projects
Unverified Commit 96e699f4 authored by Florimond Manca's avatar Florimond Manca Committed by GitHub
Browse files

Automatically load environment variables from .env file (#14)

parent 7e141466
No related branches found
No related tags found
No related merge requests found
...@@ -5,10 +5,13 @@ Common settings suitable for all environmebts. ...@@ -5,10 +5,13 @@ Common settings suitable for all environmebts.
""" """
import os import os
from dotenv import load_dotenv
import dj_database_url import dj_database_url
import pymdownx.emoji import pymdownx.emoji
load_dotenv()
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
dn = os.path.dirname dn = os.path.dirname
BASE_DIR = dn(dn(dn(os.path.abspath(__file__)))) BASE_DIR = dn(dn(dn(os.path.abspath(__file__))))
......
...@@ -35,6 +35,9 @@ Pillow ...@@ -35,6 +35,9 @@ Pillow
# Testing # Testing
factory-boy factory-boy
# Miscellanneous
python-dotenv==0.11
# Deployment # Deployment
django-heroku # Heroku integration django-heroku # Heroku integration
whitenoise # Static files serving whitenoise # Static files serving
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment