Skip to content

Commit

Permalink
Get settings from environment
Browse files Browse the repository at this point in the history
  • Loading branch information
sagepe committed Nov 5, 2024
1 parent a520bc0 commit 1f58140
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/twfy_votes/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,13 @@
STATIC_URL = "static/"
STATIC_ROOT = BASE_DIR / ".static"

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure-ka$edl#zy75+_@ohr-s7kt6m_%#j501c!9k_ofcu&77k*5ur3a"

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []

SECRET_KEY = env("SECRET_KEY")
DEBUG = env("DEBUG")
ALLOWED_HOSTS = env("ALLOWED_HOSTS")
CACHE_FILE = env("CACHE_FILE")
HIDE_DEBUG_TOOLBAR = env("HIDE_DEBUG_TOOLBAR")
GOOGLE_ANALYTICS = env("GOOGLE_ANALYTICS")
TWFY_API_KEY = env("TWFY_API_KEY")

# Application definition

Expand Down

0 comments on commit 1f58140

Please sign in to comment.