Skip to content

Commit

Permalink
fix django key for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenepix committed Nov 9, 2024
1 parent ee413dd commit 43bbf2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/env_file_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def build_django_secrets(env_name: str) -> None:
STRIPE_ENDPOINT_SECRET = ""
# Django
# ------------------------------------------------------------------------------
DJANGO_SECRET_KEY="{get_or_generate_key(name="DJANGO_SECRET_KEY", multiplier=2)}" # noqa: S105
DJANGO_SECRET_KEY="{'brBDrH4Gb-65!' if env_name == 'development' else get_or_generate_key(name="DJANGO_SECRET_KEY", multiplier=2)}" # noqa: S105
DJANGO_DEBUG={env_name!='production'}
IS_LOCAL={env_name!='production'}
DJANGO_SETTINGS_MODULE="config.settings.{env_name}"
Expand Down

0 comments on commit 43bbf2c

Please sign in to comment.