Hi Radomir,

If you have something like that you should use in my opinion template 
context processor. It's very easy to write one, because it's simple python 
function.

Here you have some context_processor from django 
core: 
https://github.com/django/django/blob/master/django/core/context_processors.py

And here docs:
https://docs.djangoproject.com/en/dev/ref/templates/api/#basics

Cheers,
Kamil Galuszka

On Sunday, August 25, 2013 1:04:01 PM UTC+2, Radomir Wojcik wrote:
>
> I am actually thinking using some sort of templatetag now instead of 
> passing the query each time since its used in base.html. It can return the 
> exact html string that can be displayed in base.html.  Right now I have the 
> " locations = Location.objects.all() " passed to the template in every 
> single view.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to