Removing the blog app?

36 views
Skip to first unread message

David Novakovic

unread,
Sep 16, 2012, 4:28:44 AM9/16/12
to mezzani...@googlegroups.com
Hey all,

Anyone tried to remove the blog app and gotten this error?

File "/Users/dpn/.virtualenvs/el/lib/python2.7/site-packages/mezzanine/boot/lazy_admin.py" in lazy_registration
  29.             getattr(AdminSite, name)(self, *deferred_args, **deferred_kwargs)
File "/Users/dpn/.virtualenvs/el/lib/python2.7/site-packages/django/contrib/admin/sites.py" in unregister
  107.                 raise NotRegistered('The model %s is not registered' % model.__name__)

Exception Type: NotRegistered at /
Exception Value: The model BlogPost is not registered

I've had a poke around but nothing is jumping out at me.
 

David Novakovic

unread,
Sep 16, 2012, 7:25:05 AM9/16/12
to mezzani...@googlegroups.com
To answer my own question, I was unregistering a model from the admin that was no longer installed when I removed the blog app:  admin.site.unregister(BlogPost)
Reply all
Reply to author
Forward
0 new messages