Sunday, March 14, 2010

Re: Shared views

You could use a base template that generates the life and right
columns. For the other content on the page, you could create a block
placeholder. Then, all of the other pages would extend that base
template and replace the content block.

You can read up on template inheritance here:
http://docs.djangoproject.com/en/1.1/topics/templates/#template-inheritance

On Mar 14, 7:03 am, grimmus <graham.col...@gmail.com> wrote:
> Hi,
>
> I have a site with a blog area and 5 pages powered by a simple cms.
>
> On every page i show event information in the right column and social
> media info in the left column.
>
> I am wondering what view should contain the info for the left and
> right column ? I would like to keep it separate from the blog and cms
> views so i can re-use it in both places.
>
> Any advice is appreciated. I hope i have been clear.

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