divio / aldryn-people

People and Organizations
Other
9 stars 41 forks source link

u'aldryn_people' is not a registered namespace error after deleting page with application #89

Closed kkovrizhenko closed 9 years ago

kkovrizhenko commented 9 years ago

if delete page with aldryn_people namespace, all pages where People list were used - fails (if at least one person created)

Expected: Information message sgould be shown instead of plugin for admin user only as it works for other addons https://gist.github.com/kkovrizhenko/e48c14d263811d1b384d

simonkern commented 9 years ago

I encounter the same issue with a fresh installation. I set up everything according to the docs (including boilerplate, parler etc.), yet I get the u'aldryn_people' is not a registered namespace error.

Could this be an issue with the apphook?

simonkern commented 9 years ago

Ok I figured it out, after I've taken a look at the aldryn-demo site.

The mistake was the following: I added the Plugin only in the "structure"-tab, but not in the page's settings tab. The documentation should be improved here - it is not obvious for first-time users of django-cms. I wasn't aware of this necessity.

Additionaly, it might be useful to only show Plugins/hooks that have already been added in a page's "structure-tab", or at least add the plugin as well under settings, if it gets added there.

mkoistinen commented 9 years ago

@simonkern I'm glad you figured it out. Indeed, its seldom obvious how to use apphooks to new users. We'll see if we can improve the documentation in the future. Thanks!

jdejoode commented 8 years ago

I had the same issue as @simonkern. On a vanilla install of django-cms, aldryn, aldryn-people, aldryn-newsblog, I FIRST had to create a people page (with the apphook) and ONLY THEN I could create a blog page.