I'm having a trouble using some multiple inhertiance. The page seems
to inherit properly but I can only define blocks for the "grand
parent" and not the parent.
Example:
site/base.html
------------------
<html>
<head>
<title>{% block title %}{% endblock %}</title>
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html
profile/profile.html
-----------------------
{% extends "site/base.html" %}
{% block title %}{{ user.username }}'s Profile{% endblock %}
{% block content %}
<h1>stuff</h1>
{% block profile_content %}
{% endblock %}
text
{% endblock %}
profile/edit_profile.html
------------------------------
{% extends "profile/profile.html" %}
{% block title %}Edit Profile{% endblock %}
{% block profile_content %}
A form is in here
{% endblock %}
When I visit edit_profile.html I get the title of Edit Profile with an
h1 tag and the word 'text' underneath it. However The form in the
profile_content block is not rendered, and is in fact not on the
page. I am doing something incorrect?
Thanks,
AJ
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---