I wanted to add location address in the menu. I have a model called 
locations so this is easy enough to do. But now I have to add the queryset 
to every view, because every view has a template that extends base.html. 
 So do I have to add this queryset as such to every view now?

locations = Location.objects.all()


or is there a way to do this so I associate a view that always runs on 
every page to get the locations queryset? There are many ways to do this 
but I wanted to know what best practice suggests.

Thanks

-- 
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