On Tuesday, April 22, 2014 4:13:20 AM UTC-4, Stephen McDonald wrote:
>
> Stepping through the page middleware which handles assigning the page 
> variable will probably shed some light:
>
>
> https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/middleware.py#L91-L124
>

Thanks! From this I noticed that the request returned by the view had no 
"context_data" attribute. Apparently the view needs to use 
mezzanine.utils.render instead of django's render or render_to_response in 
order to be given a "context_data" attribute.

For now, I will just override the urls and create custom views, but is 
there any easy way to wrap or decorate views that use Django's render?

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to