\ n \ djcelery:0001_initial'使用South迁移Django应用程序时

时间:2017-08-22 04:28:25

标签: django django-south django-migrations djcelery

使用South迁移我的Django应用程序时出现以下错误。

    from django.db import models, migrations
    ImportError: cannot import name migrations

我在我的应用中使用Django==1.5.7 django-celery==3.2.1South==1.0.1

这是日志,

    UnknownMigration: Migration 'djcelery:0001_initial' probably doesn't exist.
Traceback (most recent call last):
  File "/env/env/local/lib/python2.7/site-packages/south/migration/base.py", line 310, in migration
    migration = __import__(full_name, {}, {}, ['Migration'])
  File "/env/env/local/lib/python2.7/site-packages/django_celery-3.2.1-py2.7.egg/djcelery/migrations/0001_initial.py", line 4, in <module>
    from django.db import models, migrations
ImportError: cannot import name migrations

This并没有解决我的问题,因为我在这里使用South进行迁移,似乎与django-celery有关。

有人可以帮我解决这个问题吗?

0 个答案:

没有答案