Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/maxkb/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# 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-zm^1_^i5)3gp^&0io6zg72&z!a*d=9kf9o2%uft+27l)+t(#3e'
SECRET_KEY = CONFIG.get("SECRET_KEY") or 'django-insecure-zm^1_^i5)3gp^&0io6zg72&z!a*d=9kf9o2%uft+27l)+t(#3e'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = CONFIG.get_debug()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your code contains:

  • An unnecessary call to CONFIG.get_debug() when setting the SECRET_KEY, which might not be needed unless you have specific logic that depends on it.

Recommendation: Simplify the SECRET_KEY assignment by removing the conditional statement and just use CONFIG.get(). If DEBUG is needed elsewhere, ensure it is initialized appropriately before using it here.

Expand Down
Loading