python - Wagtail 1.0: RoutablePageMixin throws TypeError: serve() takes exactly 5 arguments (2 given) -
after implementing routablepage documented, created page , tried render it. that's when error. after digging, looks starts @ wagtailcore/urls.py , problem call serve() located in wagtailcore/views.py doesn't match routablepage serve function defined here. code:
class officeroutes(routablepagemixin): @route(r'^offices/(?p<office_id>[\w-]+)/$', name="offices") def office_landing_view(self, request, office_id, *args, **kwargs): return httpresponse("this isn't working") class officepage(routablepagemixin, page): body = richtextfield(blank=true) content_panels = page.content_panels + [ fieldpanel('body', classname="full") ]
what issue? have strong feeling i'm missing concept how routablepages used. return @route function guess.
any appreciated! thanks!
Comments
Post a Comment