Re: Shared views

2010-03-14 Thread Dan Carroll
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  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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Shared views

2010-03-14 Thread grimmus
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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.