If you are using  render_to_response to load a page and are using template
tags in that page then pass the context (this in views.py for that app)

For eg:
def do_something(request):
 ...
 ...
 return render_to_response('multimedia.html', {'videos': videos} ,
context_instance = RequestContext(request)  )

And in the template tag use something similar to:
@register.inclusion_tag('news.html', takes_context = True)
def show_news_sidebar(context):
  request = context['request']
  news = getNewsrequest)
  return {'news': news}

Was that your problem or did i just misunderstood you?

-V-
http://twitter.com/venkasub

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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