Have a look at template inheritance

http://www.djangoproject.com/documentation/templates/#template-inheritance

This may give you more of any idea of how to structure your main
template.


[EMAIL PROTECTED] wrote:
> I'm a web developer and I'm developing my first application using
> Django.  I'm very impressed with the MVC concept in Django.  I'm
> addressing this group for some advice on how to organize my code for
> this web application.
>
> Basically, my application will have the typical master page that will
> contain things like: page title, website logo, top banner, user id and
> login status, main menu, the typical 3 column layout with 'ad blocks'
> on each side, content in the center column and finally a footer with
> copyright information.
>
> I'm not sure at this point what would be the best place to put the
> Python code that takes care of creating the context for the elements
> contained in this master template.  Should I subclass a master page?
>
> Any advice on this subject would be greately appreciated.
>
> Thanks,
> Carlos Perez


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to