Re: Passing additional variables to flatpage template

2012-04-16 Thread Tom Evans
On Sat, Apr 14, 2012 at 9:27 PM, Swaroop Shankar V  wrote:
> Hi All,
>
> Am using flatpage app in my application. I want to send
> few additional variables that can be accessible from the flatpage templates.
> So how can i accomplish the same?
>

You cannot. The only way to get additional variables into the template
context when using flatpages is to use TEMPLATE_CONTEXT_PROCESSORS, as
flatpages are rendered using a RequestContext.

Cheers

Tom

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Passing additional variables to flatpage template

2012-04-14 Thread Swaroop Shankar V
Hi All,

Am using flatpage app in my application. I want to send
few additional variables that can be accessible from the flatpage
templates. So how can i accomplish the same?

Thanks and Regards,

Swaroop Shankar V

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.