NameError: name 'ParentalKey' is not defined

128 views
Skip to first unread message

longw...@qq.com

unread,
Mar 2, 2016, 5:47:06 AM3/2/16
to Wagtail support
Hello,

I am not a developer. After spending a month on django-cms & mezzanine, I see the higher promise of Wagtail (search comes default & multilingual sites documented practically, not to mention the intuitive practical admin).
I just followed the docs verbatim from scratch.
I get NameError: name 'ParentalKey' is not defined ..

The dpaste of my documented blog app model.py is here : http://dpaste.com/1TEEGZ9 

Please advise.

Regards,
; Yuan

Matthew Westcott

unread,
Mar 2, 2016, 5:56:06 AM3/2/16
to wag...@googlegroups.com
Hi Yuan,
You've missed a line at the top of the file:

from modelcluster.fields import ParentalKey


Cheers,
- Matt
> --
> You received this message because you are subscribed to the Google Groups "Wagtail support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wagtail+u...@googlegroups.com.
> To post to this group, send email to wag...@googlegroups.com.
> Visit this group at https://groups.google.com/group/wagtail.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/wagtail/9c65f9c4-d529-49b1-875b-d11e853b8687%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages