load .env file

This commit is contained in:
Aarni Halinen
2022-05-19 21:08:44 +03:00
parent 7035ebccca
commit 913eb1cedf
+3
View File
@@ -10,10 +10,13 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/ https://docs.djangoproject.com/en/1.9/ref/settings/
""" """
from dotenv import load_dotenv
import sentry_sdk import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.django import DjangoIntegration
from sikweb.base import * from sikweb.base import *
load_dotenv() # loads the configs from .env
SENTRY_DSN = os.getenv("SENTRY_DSN", "") SENTRY_DSN = os.getenv("SENTRY_DSN", "")
DEPLOY_ENV = os.getenv("DEPLOY_ENV", "production") DEPLOY_ENV = os.getenv("DEPLOY_ENV", "production")