Note that there are some explanatory texts on larger screens.

plurals
  1. POSouth 0.8.3 upgrade causes DeserializationError
    text
    copied!<p>I have a Django 1.5.5 project that uses South 0.8.2. Everything works great -- including migration using South. When I attempt to upgrade this project to South 0.8.3, I get the following error when I run <code>python manage.py migrate</code>:</p> <pre><code>(VBEZ)vagrant@vagrant-ubuntu-precise-64:/vagrant$ python manage.py migrate Running migrations for django_mailbox: - Nothing to migrate. - Loading initial data for django_mailbox. Installed 3 object(s) from 1 fixture(s) Running migrations for djcelery: - Nothing to migrate. - Loading initial data for djcelery. DeserializationError: Problem installing fixture 'initial_data.json': Invalid model identifier: 'sites.site' </code></pre> <p><strong>What has happened?</strong></p> <p>Here is my <code>initial_data.json</code> file:</p> <pre><code>[ { "pk": 1, "model": "sites.site", "fields": { "domain": "0.0.0.0:5000", "name": "Project (Development)" } }, { "pk": 2, "model": "sites.site", "fields": { "domain": "project-staging.example.com", "name": "Project (Staging)" } }, { "pk": 3, "model": "sites.site", "fields": { "domain": "project.example.com", "name": "Project" } } ] </code></pre> <p>Here is what a successful migration using South 0.8.2 looks like:</p> <pre><code>Running migrations for django_mailbox: - Nothing to migrate. - Loading initial data for django_mailbox. Installed 3 object(s) from 1 fixture(s) Running migrations for djcelery: - Nothing to migrate. - Loading initial data for djcelery. Installed 3 object(s) from 1 fixture(s) Running migrations for taggit: - Nothing to migrate. - Loading initial data for taggit. Installed 3 object(s) from 1 fixture(s) Running migrations for eee_core: - Nothing to migrate. - Loading initial data for eee_core. Installed 3 object(s) from 1 fixture(s) Running migrations for core: - Nothing to migrate. - Loading initial data for core. Installed 3 object(s) from 1 fixture(s) </code></pre> <p>Things I have looked at/tried:</p> <ul> <li><code>django-contrib-sites</code> is in my `INSTALLED_APPS'</li> <li>Migration works fine if the <code>initial_data.json</code> file is removed.</li> <li>If I run migrations individually, they run fine. Example <code>python manage.py migrate myapp</code>.</li> <li>I have submitted a ticket: <a href="http://south.aeracode.org/ticket/1324">http://south.aeracode.org/ticket/1324</a></li> </ul> <p>Thanks.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload