Ho utilizzato South per il mio progetto per un po ', ma di recente ho fatto un'enorme quantità di sviluppo e cambiato macchina di sviluppo e penso che qualcosa sia incasinato nel processo. Il progetto funziona bene, ma non posso applicare le migrazioni. Ogni volta che cerco di applicare una migrazione ottengo il seguente traceback:Errore di migrazione sud: eccezione NoMigrations per django.contrib.auth
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.
Io non sono quello sperimentato con il Sud e non ho incontrato questo errore prima. L'unica menzione utile che posso trovare online su questo errore è per il pre-0.7 Penso e sono su South 0.7. Ho eseguito 'easy_install -U South' solo per essere sicuro.
Hai sincronizzato innanzitutto per garantire che le tabelle di southmigrationhistory siano presenti? O hai importato un db dump quando hai spostato la macchina? –
Inoltre, django.contrib.auth non dovrebbe usare le migrazioni (a meno che tu non stia facendo qualcosa per hackerarlo da solo). Hai creato manualmente una directory di migrazione per contrib.auth? –
Ho fatto un syncdb per cominciare. Il database è lo stesso database in cui utilizzo solo un database SQLite per lo sviluppo. Per il secondo punto, vedi la mia soluzione qui sotto. – danpalmer