Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name migrations #8

Open
Jorigorn opened this issue Nov 5, 2014 · 1 comment
Open

ImportError: cannot import name migrations #8

Jorigorn opened this issue Nov 5, 2014 · 1 comment

Comments

@Jorigorn
Copy link

Jorigorn commented Nov 5, 2014

(django_blog)[root@localhost django_blog]# python manage.py migrate reversion
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/django/core/management/init.py", line 399, in execute_from_command_line
utility.execute()
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/django/core/management/init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(_args, *_options.dict)
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
output = self.handle(_args, *_options)
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/south/management/commands/migrate.py", line 111, in handle
ignore_ghosts = ignore_ghosts,
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/south/migration/init.py", line 173, in migrate_app
Migrations.calculate_dependencies()
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/south/migration/base.py", line 229, in calculate_dependencies
migration.calculate_dependencies()
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/south/migration/base.py", line 363, in calculate_dependencies
for migration in self._get_dependency_objects("depends_on"):
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/south/migration/base.py", line 343, in _get_dependency_objects
for app, name in getattr(self.migration_class(), attrname, []):
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/south/migration/base.py", line 315, in migration_class
return self.migration().Migration
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/south/utils/init.py", line 62, in method
value = function(self)
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/south/migration/base.py", line 304, in migration
raise exceptions.UnknownMigration(self, sys.exc_info())
south.exceptions.UnknownMigration: Migration 'reversion:0001_initial' probably doesn't exist.
Traceback (most recent call last):
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/south/migration/base.py", line 302, in migration
migration = import(full_name, {}, {}, ['Migration'])
File "/root/.virtualenvs/django_blog/lib/python2.7/site-packages/reversion/migrations/0001_initial.py", line 4, in
from django.db import models, migrations
ImportError: cannot import name migrations

(django_blog)[root@localhost django_blog]#

@Jorigorn Jorigorn closed this as completed Nov 5, 2014
@Jorigorn Jorigorn reopened this Nov 5, 2014
@Jorigorn
Copy link
Author

Jorigorn commented Nov 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant