Skip to content

Make Migrations Backward-Compatible with South #353

@clintonb

Description

@clintonb

Using the latest commit (d53529b) with Django 1.6, I get an error when running migrations introduced by #318:

south.exceptions.UnknownMigration: Migration 'default:0001_initial' probably doesn't exist.
Traceback (most recent call last):
  File "/Users/clintonb/.virtualenvs/edx-analytics-dashboard/lib/python2.7/site-packages/south/migration/base.py", line 302, in migration
    migration = __import__(full_name, {}, {}, ['Migration'])
  File "/Users/clintonb/.virtualenvs/edx-analytics-dashboard/src/python-social-auth/social/apps/django_app/default/migrations/0001_initial.py", line 4, in <module>
    from django.db import models, migrations
ImportError: cannot import name migrations

The migrations should support both Django 1.7 and South for Django < 1.7. See http://south.readthedocs.org/en/latest/releasenotes/1.0.html#library-migration-path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions