Skip to content

Remove hardcoded Django SECRET_KEY value - #167

Merged
chosak merged 1 commit into
mainfrom
fix/hardcoded-secret-key
Oct 21, 2026
Merged

chosak merged 1 commit into
mainfrom
fix/hardcoded-secret-key

Conversation

@chosak

@chosak chosak commented Oct 21, 2026

Copy link
Copy Markdown
Member

Even though SECRET_KEY isn't actually used by this project (there's no Django auth, no admin, no sessions, no encrypted data), Django still requires a value be set. We shouldn't be hardcoding in in the settings file like this, though. Default to a random value, or provide one via the DJANGO_SECRET_KEY environment variable.

Even though SECRET_KEY isn't actually used by this project (there's no
Django auth, no admin, no sessions, no encrypted data), Django still
requires a value be set. We shouldn't be hardcoding in in the settings
file like this, though. Default to a random value, or provide one via
the DJANGO_SECRET_KEY environment variable.
@chosak
chosak merged commit 455a8b3 into main Oct 21, 2026
3 checks passed
@chosak
chosak deleted the fix/hardcoded-secret-key branch October 21, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants