Fantomas42 / django-blog-zinnia

Simple yet powerful and really extendable application for managing a blog within your Django Web site.
http://django-blog-zinnia.com/
BSD 3-Clause "New" or "Revised" License
2.11k stars 731 forks source link

New installation Django 1.8 - Models not loaded #435

Closed ilovecraft closed 9 years ago

ilovecraft commented 9 years ago

I apologize if this is a duplicate. I looked around the blogs to see if this has been addressed already. I have tried multiple installations of Zinnia and all fail with the same error. When running syncdb I recieve the error: File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 131, in check_models_ready raise AppRegistryNotReady("Models aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.

INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_comments', 'django.contrib.sitemaps', 'django.contrib.sites', 'markdown_deux', 'mptt', 'tagging', 'zinnia', )

I have attempted to use pip install -U django-blog-zinnia and this completes successfully; but errors when running syncdb. I have made the tweaks mentioned in previous posts to the authors.py and init.py files but still receive the same error.

Am I missing a work around somewhere?

ilovecraft commented 9 years ago

The issue was resolved by downloading the latest copy of django-mptt and replacing the one installed by pip. Unsure why they were different but Zinnia now executes flawlessly. Well done. Thanks.

EmlynC commented 9 years ago

Cheers for posting, this also helped me when I tried to add Zinnia to a django site that was already using a version of django-mptt. Upgrading to latest django-mptt with

pip install -U django-mptt

... fixed this for me.