#1278: MEDIA_URL needs to be accessible from templates
------------------------+---------------------------------------------------
Reporter: matt | Owner: adrian
Status: reopened | Component: Template system
Version: SVN | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------+---------------------------------------------------
Comment (by ubernostrum):
Even if Django shipped a built-in context processor for retrieving some
settings, you'd still need to use `RequestContext` to get them to show up
in your template contexts; there's no way around that. I do think there's
utility in deciding on a set of default settings like `MEDIA_URL`, etc.
which are safe and which could have a built-in context processor.
Adding things to template contexts which are specific to the needs of your
application is the job of custom context processors in your application;
that's explicitly what context processors and `RequestContext` are
designed for.
--
Ticket URL: <http://code.djangoproject.com/ticket/1278#comment:7>
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
-~----------~----~----~----~------~----~------~--~---