Opened 14 years ago
Closed 14 years ago
#15958 closed New feature (duplicate)
settings.get('Name', default) functionality
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Core (Other) | Version: | 1.3 |
Severity: | Normal | Keywords: | settings |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
It would be nice for projects that involve the same code base running on multiple deployments with different settings files to be able to conditionally request the value of a specific setting without having to define it in every settings file. Something like:
If settings.get('DO_WORK', False):
#Do Work
Note:
See TracTickets
for help on using tickets.
Discovered to be identical to #10098, recommend that if resolution to #10098 is accepted solution, it should be documented as part of settings, or at least elsewhere besides a comment on a ticket.