#32764: pass getattr() for settings to the settings module
-------------------------------+--------------------------------------
     Reporter:  Mike Brancato  |                    Owner:  nobody
         Type:  New feature    |                   Status:  closed
    Component:  Core (Other)   |                  Version:  3.2
     Severity:  Normal         |               Resolution:  duplicate
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => duplicate
 * component:  Uncategorized => Core (Other)


Comment:

 > Is there any reason that the Settings class could not instead maintain a
 list of settings

 I don't think it's feasible, settings are not limited to Django's internal
 use only. You can define your own settings, 3rd party package can define
 their settings etc. I would recommend to start a discussion about using
 PEP-562 in settings on DevelopersMailingList where you'll reach a wider
 audience.

 > my use-case is dynamic credentials that rotate periodically.

 See #30178.

 Closing as a duplicate.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32764#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.8beaec2a25d231207d2f0f100d77d190%40djangoproject.com.

Reply via email to