1
我使用的是python 2.5和django 1.0.2。但讓我感動到Python 2.6和1.2的Django最近和遷移過程中,我發現了以下錯誤現在:Django 1.2和南方問題
[email protected]:~/server/mx30$ python manage.py migrate
Running migrations for peer_center:
- Migrating forwards to 0005_adding_config_model.
> peer_center: 0001_initial
> peer_center: 0002_add_cache
> peer_center: 0003_add_options_field
> peer_center: 0004_add_player_option_to_media_item
> peer_center: 0005_adding_config_model
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 222, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.6/dist-packages/south/management/commands/migrate.py", line 91, in handle
skip = skip,
File "/usr/local/lib/python2.6/dist-packages/south/migration.py", line 586, in migrate_app
db.send_pending_create_signals()
File "/usr/local/lib/python2.6/dist-packages/south/db/generic.py", line 678, in send_pending_create_signals
self.really_send_create_signal(app_label, list(set(model_names)))
File "/usr/local/lib/python2.6/dist-packages/south/db/generic.py", line 718, in really_send_create_signal
verbosity=verbosity, interactive=interactive)
File "/usr/local/lib/python2.6/dist-packages/django/dispatch/dispatcher.py", line 166, in send
response = receiver(signal=self, sender=sender, **named)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/contenttypes/management.py", line 10, in update_contenttypes
db = kwargs['db']
KeyError: 'db'
運行遷移幾次之後,它最終通過。 我有5個不同的應用程序正在遷移,我認爲這可能是依賴性問題。但我沒有調用其他應用程序的遷移。 那麼會有什麼問題呢?
問候,Arshavski亞歷山大。