I am having base.html template as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
        <title>{% block title %}{% endblock %}</title>
</head>
<body>
        
        <h1>Sohal Corporations Official Site</h1>
        {% block content%}{% endblock %}
        {% block footer %}{% endblock %}
</body>
</html>

Then I am having title.html template as follows:

{% extends "base.html" %}


{% block title %}Sohal Corporations{% endblock %}

{% block content %}
<p>You are viewing the Official website of Sohal Corporations</p>
{% endblock %}

and finally there is footer.html template :

{% extends "base.html" %}

{% block footer %}
<p> Thanks for doing Business with us.
we Hope to see you again.
Thanks,
Sohal Corporations
</p>
{% endblock %}

In view I have defined this :
return render_to_response('base.html',locals())
But the problem is that django is only rendering base.html and not the
other two. I am new to django and python so please bear with me.
Thanks

-- 
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.

Reply via email to