python - Access django context variable from parent template -


I can not set any Django template variables from inside children, what's wrong with any idea?

/ P>

   

main.html:

  {{extended "base.html"}}   

details.html:

  {{extends "main.html"}}   

this is not working help?

You can not return a single word from a view to a view HttpResponse Return to item instead of try:

Django 1.3+

  return render (request, 'main.html', {'header_title': 'my text' })  <   return to render_to_response ('main.html', {'header_title': 'my_text'}, context_instance = RequestContext (requested))    

Comments