Hey Neeraj, page processors only work on page instances. Is your home page a page in the Mezzanine page tree.
On Mon, Dec 16, 2013 at 10:36 PM, Neeraj Dhiman <[email protected]>wrote: > Hi , > > I am using page processors to use some dynamic data on some pages. I > have sucessfully used tyhis on some URL like 'test' but when I try to use > it on home page it doesn't work. > > *Code :* > > *Working -> * > > @processor_for("test") > def page_slug_processor(request, page): > return HttpResponseRedirect("/events/") > > *Doesn't work ->* > > @processor_for("/") > def page_slug_processor(request, page): > return HttpResponseRedirect("/events/") > > Can someone tell me the correct way to do this . > > Thanks > > -- > 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/groups/opt_out. > -- 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/groups/opt_out.
