mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 15:05:49 +03:00
[GH-ISSUE #187] hc/settings.py template -> resolve from env variables #133
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lukasmrtvy on GitHub (Sep 19, 2018).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/187
Is possible to do in hc/settings.py something like this ?
It would be a great if this can be a resolved from env variables.
It will not break a default behaviour if You set a default values.
Thanks
@cuu508 commented on GitHub (Sep 19, 2018):
I've been thinking about putting this in a
local_settings.py.examplefile but you make a good point–if the default behavior doesn't change then this can go in thesettings.py.I've also been thinking about what prefix to use for the environment variables. I have used
HC_SOME_SETTINGmyself in the past. I've also seenHEALTHCHECKS_SOME_SETTINGin several Dockerfiles. Going with plainSOME_SETTINGwould be the nicest.So, in short, I like this idea.
os.environ.getcan be a little bit more concise:os.getenv