Hi, I have this issue about some variables that should be available in
templates, no matter which view is called. So far I could only think
of making a custom function, that would add these variables like so:

def render(request, template, context):
    #variables that should be allways available
    context['options'] = options
    context['tags'] = tag_cloud()
    # more variables....
    return render_to_response(template, context)

What do you think about this method? Maybe there is built-in feature
or something? Thanks for any comments.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to