Skip to content

Commit

Permalink
Merge pull request #53 from honjes/env-import-problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramminCat authored Jan 8, 2025
2 parents ebcec02 + cbeae60 commit 37fa409
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from dotenv import load_dotenv

# BELOW CODE IS FOR PRODUCTION ONLY
#project_folder = os.path.expanduser('~/mysite') # adjust as appropriate
#load_dotenv(os.path.join(project_folder, '.env'))
# project_folder = os.path.expanduser('~/mysite') # adjust as appropriate
# load_dotenv(os.path.join(project_folder, '.env'))
# ABOVE CODE IS FOR PRODUCTION ONLY

load_dotenv('.env')
Expand All @@ -17,19 +17,17 @@

SECRET_KEY = os.environ.get("VIDZY_APP_SECRET")

MINIFY_HTML = os.environ.get("MINIFY_HTML")
MINIFY_HTML = os.environ.get("MINIFY_HTML") == "True"
HOST = os.environ.get("HOST")

ALLOW_UPLOADS = os.environ.get("ALLOW_UPLOADS")

S3_ENABLED = os.environ.get("S3_ENABLED")
S3_ENABLED = os.environ.get("S3_ENABLED") == "True"
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY")
S3_BUCKET_NAME = os.environ.get("S3_BUCKET_NAME")
AWS_ENDPOINT_URL = os.environ.get("AWS_ENDPOINT_URL")
S3_PUBLIC_URL = os.environ.get("S3_PUBLIC_URL")

SENTRY_DSN = os.environ.get("SENTRY_DSN")
SENTRY_ENABLED = os.environ.get("SENTRY_ENABLED")


SENTRY_ENABLED = os.environ.get("SENTRY_ENABLED") == "True"

0 comments on commit 37fa409

Please sign in to comment.