#3818: Expose chosen settings to default context processor.
-----------------------------+----------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Core framework
Version: SVN | Keywords: expose_settings
Stage: Unreviewed | Has_patch: 1
-----------------------------+----------------------------------------------
Gives user an ability to expose wanted settings to the default context
processors, and when you control it from settings.py the only security
risk is: stupid settings creator. Also it gives you control what to
expose, if in future user might want to expose something else from there
too.
settings.py:
EXPOSE_SETTINGS = ('MEDIA_URL', 'ADMIN_MEDIA_PREFIX', 'LANGUAGE_CODE')
It could be set by default to that.
There is no point to write multiple settings reading context processors,
this is the settings context processor. If your application needs some
other setting, then you expose it to the app.
--
Ticket URL: <http://code.djangoproject.com/ticket/3818>
Django Code <http://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---