I investigated a little and apparently the login decorator is for views, 
not url patterns. I ended up using this little 
middleware<https://gist.github.com/jerivas/9335869>that lets me conveniently 
define a list of url patterns for which login is 
required.

Related question: is it possible to hide products from the sitemap without 
needing to manually uncheck the "Show in sitemap" box in every existing and 
new product?

-- 
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/groups/opt_out.

Reply via email to