So I see that I can easily create a context_processor to do this stuff
for me.

It says that these are the default context_processors.  I can not find
them in the settings.py, where is this located?  (I grepped my whole
project so it must be somewhere else)

TEMPLATE_CONTEXT_PROCESSORS
("django.core.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media")

So if I created my own I could just add it to this list and it would
do what I need.  Once my context_processor is made how would I add it
to this list?  Something like
settings.TEMPLATE_CONTEXT_PROCESSORS.append(my_processor)


On Mar 29, 7:19 pm, David Zhou <da...@nodnod.net> wrote:
> On Sun, Mar 29, 2009 at 7:14 PM, IanR <ianrear...@gmail.com> wrote:
> > I'm trying to stay a close to the suggested Django conventions as
> > possible.  I have a few variables that I need to render any page.
>
> Check out context 
> processors:http://docs.djangoproject.com/en/dev/ref/templates/api/#writing-your-...
>
> > base_media_url, this is the url of where I store all my static files
> > and media, images, javascript, css
>
> This is actually already available if you use the RequestContext, as
> by default, the list of context processors include the media url:
>
> http://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-c...
>
> -- dz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to