#16628: Provide a class to hold application-based settings
-------------------------+------------------------------
 Reporter:  AzMoo        |          Owner:  nobody
     Type:  New feature  |         Status:  new
Milestone:               |      Component:  Core (Other)
  Version:  1.3          |       Severity:  Normal
 Keywords:               |   Triage Stage:  Unreviewed
Has patch:  1            |  Easy pickings:  0
    UI/UX:  0            |
-------------------------+------------------------------
 When developing a portable application it would be useful to have a simple
 way to access the project settings first and fall back to an application-
 based settings module for defaults.

 Application developers can create a settings.py module in the application
 and instantiate settings using the ApplicationSettingsHolder.

 Example:

 {{{
 #!div style="font-size: 80%"
 !__init!__.py:
   {{{#!python
   from django.conf import ApplicationSettingsHolder

   settings = ApplicationSettingsHolder('myapp.settings')
   }}}
 access settings with:
   {{{#!python
   from myapp import settings
   }}}
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16628>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to