잠시 동안 프로젝트에서 South를 사용하고 있지만 최근에 엄청난 양의 개발 및 변경된 개발 기계를 사용했으며 프로세스에서 엉망이됐다고 생각합니다. 프로젝트는 정상적으로 작동하지만 마이그레이션을 적용 할 수는 없습니다. 나는 다음 역 추적을 얻을 마이그레이션 적용하려고 할 때마다 :사우스 마이 그 레이션 오류 : django.contrib.auth에 대한 NoMigrations 예외
danpalmer:pest Dan$ python manage.py migrate frontend
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/Library/Python/2.6/site-packages/django/core/management/__init__.py", line 362, in execute_manager
utility.execute()
File "/Library/Python/2.6/site-packages/django/core/management/__init__.py", line 303, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.6/site-packages/django/core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Library/Python/2.6/site-packages/django/core/management/base.py", line 222, in execute
output = self.handle(*args, **options)
File "/Library/Python/2.6/site-packages/South-0.7-py2.6.egg/south/management/commands/migrate.py", line 102, in handle
delete_ghosts = delete_ghosts,
File "/Library/Python/2.6/site-packages/South-0.7-py2.6.egg/south/migration/__init__.py", line 182, in migrate_app
applied = check_migration_histories(applied, delete_ghosts)
File "/Library/Python/2.6/site-packages/South-0.7-py2.6.egg/south/migration/__init__.py", line 85, in check_migration_histories
m = h.get_migration()
File "/Library/Python/2.6/site-packages/South-0.7-py2.6.egg/south/models.py", line 34, in get_migration
return self.get_migrations().migration(self.migration)
File "/Library/Python/2.6/site-packages/South-0.7-py2.6.egg/south/models.py", line 31, in get_migrations
return Migrations(self.app_name)
File "/Library/Python/2.6/site-packages/South-0.7-py2.6.egg/south/migration/base.py", line 60, in __call__
self.instances[app_label] = super(MigrationsMetaclass, self).__call__(app_label_to_app_module(app_label), **kwds)
File "/Library/Python/2.6/site-packages/South-0.7-py2.6.egg/south/migration/base.py", line 88, in __init__
self.set_application(application, force_creation, verbose_creation)
File "/Library/Python/2.6/site-packages/South-0.7-py2.6.egg/south/migration/base.py", line 159, in set_application
raise exceptions.NoMigrations(application)
south.exceptions.NoMigrations: Application '<module 'django.contrib.auth' from '/Library/Python/2.6/site-packages/django/contrib/auth/__init__.pyc'>' has no migrations.
나는 한국과 그 경험이 아니에요을 나는 전에이 오류를 충족하지 않았습니다. 내가이 오류에 관해 온라인에서 찾을 수있는 유일한 도움이되는 언급은 0.7 이전에 대한 것이고 나는 남부 0.7에 관한 것입니다. 나는 'easy_install -U South'를 실행했다.
southmigrationhistory 테이블이 있는지 확인하기 위해 syncdb를 먼저 사용 했습니까? 또는 컴퓨터를 옮길 때 DB 덤프를 가져 왔습니까? –
또한 django.contrib.auth는 마이그레이션을 사용하지 않아야합니다 (직접 해킹 할 수있는 경우가 아니면). contrib.auth에 대한 마이그레이션 디렉토리를 수동으로 생성 했습니까? –
나는 syncdb를 시작했다. 데이터베이스는 개발 용 SQLite 데이터베이스를 사용하는 데이터베이스와 동일한 데이터베이스입니다. 두 번째 사항은 아래의 내 솔루션을 참조하십시오. – danpalmer