Closed tpansino closed 1 year ago
I am a bot, here are the test results for this PR: https://ci-tests.linuxserver.io/lspipepr/babybuddy/v1.13.2-pkg-db765aef-pr-22/index.html https://ci-tests.linuxserver.io/lspipepr/babybuddy/v1.13.2-pkg-db765aef-pr-22/shellcheck-result.xml
Thanks for the PR, but it wasn't oversight. We use the settings upstream uses and provides.
Making it customizable would lead to too many support requests we are simply not equipped to deal with.
Feel free to map your own custom babybuddy.settings.base
into the app folder. Keep in mind that you'll be on your own.
Hang on though - upstream also has a custom production.example.py
file, which sets some of the things I'm setting in my snippet above. That's how I figured out this pattern.
I get where you're coming from about the support here, but if there's no way to fork production.example.py
and point to it, then how are you supposed to set some of those settings like SESSION_COOKIE_SECURE
?
Feel free to map your own custom babybuddy.settings.base into the app folder. Keep in mind that you'll be on your own.
Also, I did do that, but my hacks broke today because of the reconfiguration of the S6 stuff. Which is fine, I'm just trying to give back so others don't have to be broken by future changes like that.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description:
DJANGO_SETTINGS_MODULE
in the S6 run scripts.Benefits of this PR and context:
Django's settings system is incredibly flexible. Allowing users to volume-mount a custom settings file, and point to it via the customary
DJANGO_SETTINGS_MODULE
env var allows the user to do things like this:(Taken from my own settings file)
And also - in the 2 files I edited, this was the only env var that wasn't customizable, so it seemed like a simple oversight 😅
How Has This Been Tested?
I have been pointing to the a custom settings module for several months with no issues.
Source / References: