Re: [mezzanine-users] Not possible to use extra_context in Page view?

2018-08-14 Thread Tuk Bredsdorff
On Monday, 13 August 2018 05:02:31 UTC+2, Stephen McDonald wrote:
>
> Just pushed a fix for that here:
> 
>
 
Cool, thanks so much!

·t

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Not possible to use extra_context in Page view?

2018-08-12 Thread Stephen McDonald
Just pushed a fix for that here:

https://github.com/stephenmcd/mezzanine/commit/4e94ab99555f5b2f4852a5a6ae0918695e5d3ba6

On Thu, Aug 9, 2018 at 8:47 PM, Tuk Bredsdorff  wrote:

> Hi,
>
> I am using the 'HOMEPAGE AS AN EDITABLE PAGE IN THE PAGE TREE'-pattern in
> urls.py and it's working fine.
>
> Now I would like to add to the context but it's not working.
>
> This is what I have in urls.py:
>
>   url('^$', mezzanine.pages.views.page, {'slug': '/', 'extra_context':
> {'my_var': 'Something extra'}}, name='home'),
>
> my_var is, however, not set on the index page and neither when expecting
> the request with the debug toolbar.
>
> Am I doing something wrong?
>
> Best,
> Tuk
>
> --
> 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 mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Stephen McDonald
http://jupo.org

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Not possible to use extra_context in Page view?

2018-08-09 Thread Tuk Bredsdorff
Hi,

I am using the 'HOMEPAGE AS AN EDITABLE PAGE IN THE PAGE TREE'-pattern in 
urls.py and it's working fine.

Now I would like to add to the context but it's not working.

This is what I have in urls.py:

  url('^$', mezzanine.pages.views.page, {'slug': '/', 'extra_context': 
{'my_var': 'Something extra'}}, name='home'),

my_var is, however, not set on the index page and neither when expecting 
the request with the debug toolbar.

Am I doing something wrong?

Best,
Tuk

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.