nimbis / cmsplugin-newsplus

An improved version of cmsplugin-news
BSD 2-Clause "Simplified" License
5 stars 10 forks source link

"django.db.utils.OperationalError: no such table: django_site" when performing migrate on empty database #3

Open rixmit opened 9 years ago

rixmit commented 9 years ago

I got the following error when performing ./manage.py migrate on an empty database: django.db.utils.OperationalError: no such table: django_site

When I remove 'cmsplugin_newsplus' from INSTALLED_APPS the migrate goes fine. If I add 'cmsplugin_newsplus' later and then migrate it also goes fine.

Even more, emptying the urls list in the cms_app.py also helps, so it seems something goes wrong there.

I'm using python3.4 and Django CMS 3.0.12

Any ideas how to fix this?

Thanks ahead.

electroniceagle commented 9 years ago

What version of Django? I'm suspecting we are missing a dependency in our south migrations: http://stackoverflow.com/questions/26127830/django-sites-framework-initial-data-migration-location

rixmit commented 9 years ago

I'm using Django version 1.7.6. The problem occurs whenever I invoke 'migrate.py' (not just when doing the migrations). It seems that django-cms is failing when it tries to get a list of patterns for all hooked apps (https://github.com/divio/django-cms/blob/master/cms/appresolver.py#L173). It tries to obtain the current site from the database, but as the database is still empty it throws an error which is not cauht...

findinshop commented 9 years ago

Good afternoon, I add pictures in the news but they are nowhere to be displayed. Choate need to do?

ghost commented 8 years ago

This is fixed by merging pull request #5

ericamador commented 8 years ago

@LaurensBER #5 has already been merged. Are you still seeing problems? I believe some of the commits in that PR were un-done by some changes we made.