के लिए NoMigrations अपवाद मैं थोड़ी देर के लिए अपने प्रोजेक्ट पर दक्षिण का उपयोग कर रहा हूं, लेकिन मैंने हाल ही में विकास की एक बड़ी मात्रा में विकास किया है और विकास मशीन बदल दी है और मुझे लगता है कि इस प्रक्रिया में कुछ गड़बड़ है। परियोजना ठीक काम करती है, लेकिन मैं माइग्रेशन लागू नहीं कर सकता। जब भी मैं एक प्रवास मैं निम्नलिखित ट्रैसबैक मिल लागू करने का प्रयास:दक्षिण माइग्रेशन त्रुटि: 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.
मुझे लगता है कि दक्षिण के साथ अनुभवी नहीं हूँ और मैं पहले इस त्रुटि नहीं मिले हैं। मुझे लगता है कि इस त्रुटि के बारे में ऑनलाइन एकमात्र उपयोगी उल्लेख है कि मैं 0-0 के लिए सोचता हूं और मैं दक्षिण 0.7 पर हूं। मैं बस सुनिश्चित करने के लिए 'easy_install -U दक्षिण' भाग गया।
क्या आपने पहले दक्षिण-माइग्रेशन इतिहास को सुनिश्चित करने के लिए सिंक किया था? या जब आप मशीन ले जाते हैं तो क्या आपने डीबी डंप आयात किया था? –
इसके अलावा, django.contrib.auth माइग्रेशन का उपयोग नहीं करना चाहिए (जब तक कि आप इसे स्वयं हैक करने के लिए कुछ नहीं कर रहे हों)। क्या आपने contrib.auth के लिए मैन्युअल रूप से माइग्रेशन निर्देशिका बनाई है? –
मैंने एक सिंकडीबी शुरू करने के लिए किया था। डेटाबेस एक ही डेटाबेस है क्योंकि मैं सिर्फ विकास के लिए SQLite डेटाबेस का उपयोग करता हूं। दूसरे बिंदु के लिए, नीचे मेरा समाधान देखें। – danpalmer