Opened 4 years ago

Closed 4 years ago

#15958 closed New feature (duplicate)

settings.get('Name', default) functionality

Reported by: Matthew Lauber <supermkl321@…> 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:

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

Change History (1)

comment:1 Changed 4 years ago by Matthew Lauber <supermkl321@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.
Back to Top