Skip to content

Commit

Permalink
environs 14+ wants python types as defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
tykling committed Feb 28, 2025
1 parent e98b158 commit 9bb33ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bma/environment_settings.py.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SECRET_KEY = env.str("DJANGO_SECRET_KEY", default="{{ django_secret_key }}")
# debug settings - remember to set allowed_hosts if debug is disabled
DEBUG = env.bool("DJANGO_DEBUG", default="{{ django_debug }}")
DEBUG_TOOLBAR = False
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default="{{ django_allowed_hostnames|join(',')|default('127.0.0.1,localhost') }}")
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default={{ django_allowed_hostnames|default(['127.0.0.1,localhost']) }})

# Database settings
DATABASES = {
Expand Down Expand Up @@ -100,7 +100,7 @@ DEFAULT_THUMBNAIL_URLS = {
}

# allow embeds from these origins
CORS_ALLOWED_ORIGINS = env.list("DJANGO_CORS_ALLOWED_ORIGINS", default="{{ django_cors_allowed_origins|join(',')|default('http://127.0.0.1:8000,http://localhost:8000') }}")
CORS_ALLOWED_ORIGINS = env.list("DJANGO_CORS_ALLOWED_ORIGINS", default={{ django_cors_allowed_origins|default(["http://127.0.0.1:8000","http://localhost:8000"]) }})

# make group names configurable
BMA_CREATOR_GROUP_NAME = env.str("BMA_CREATOR_GROUP_NAME", default="{{ django_bma_creator_group_name|default('creators') }}")
Expand Down

0 comments on commit 9bb33ee

Please sign in to comment.