Thursday, May 12, 2011

Template inheritance, how to render dynamic content in base templates

How can I render dynamic content in a base template if I only call a
view on my child template?

What I am trying to do is setup a base template that will include
"Profile" information for the user who is logged in, for example:
"Welcome John", instead of "login here", on every page. But if I call
my child page "/Home" (for example) and it extends "base.html", how do
I render the dynamic content within base.html? Thanks.

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate