If if helps, the stacktrace goes back to
local/lib/python2.7/site-packages/django/template/context.py in __init__,
in this section:
1.
Context.__init__(self, dict_, current_app=current_app,
2.
use_l10n=use_l10n, use_tz=use_tz)
3.
if processors is None:
4.
processors = ()
5.
else:
6.
processors = tuple(processors)
7.
for processor in get_standard_processors() + processors:
1.
self.update(processor(request)) # ERROR HERE
Maybe the processor shouldn't be executing there?
On Monday, December 23, 2013 3:47:16 PM UTC-2, Diego Ponci wrote:
>
> I've written a context processor, as stated in the docs, so, I have
>
> #context_processors.py
> from mezzanine.pages.page_processors import processor_for
> @processor_for('myform')
> def another_form_processor(request, page):
> return {"form": {}}
>
> and added "context_processors.another_form_processor"
> to TEMPLATE_CONTEXT_PROCESSORS on my settings.py.
>
> But when I try to use it, I get a "TypeError: another_form_processor()
> takes exactly 2 arguments (1 given)" error, that only goes away if I remove
> the page argument from the processor.
>
> Anu suggestions? Did I configure something wrong?
>
--
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.