load .env file
This commit is contained in:
@@ -10,10 +10,13 @@ For the full list of settings and their values, see
|
||||
https://docs.djangoproject.com/en/1.9/ref/settings/
|
||||
"""
|
||||
|
||||
from dotenv import load_dotenv
|
||||
import sentry_sdk
|
||||
from sentry_sdk.integrations.django import DjangoIntegration
|
||||
from sikweb.base import *
|
||||
|
||||
load_dotenv() # loads the configs from .env
|
||||
|
||||
SENTRY_DSN = os.getenv("SENTRY_DSN", "")
|
||||
DEPLOY_ENV = os.getenv("DEPLOY_ENV", "production")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user