无法使用南方迁移应用程序
cannot migrate app using south
我为我的项目安装了 south 并运行了命令
manage.py schemamigration mysite --initial
在我的终端中它给出了-
aquaman@aquamanpc:~/mysite$ python manage.py schemamigration mysite --initial
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.7/dist-packages/south/management/commands/schemamigration.py", line 73, in handle
migrations = Migrations(app, force_creation=True, verbose_creation=verbosity > 0)
File "/usr/lib/python2.7/dist-packages/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 "/usr/lib/python2.7/dist-packages/south/migration/utils.py", line 41, in app_label_to_app_module
app = models.get_app(app_label)
File "/usr/lib/python2.7/dist-packages/django/db/models/loading.py", line 190, in get_app
raise ImproperlyConfigured("App with label %s could not be found" % app_label)
django.core.exceptions.ImproperlyConfigured: App with label mysite could not be found
和我的 settings.py-
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'south',
'mysite',
)
哪里不对请大家帮帮我
我是 django 的新手
您忘记将 'mysite'
应用程序添加到 setting.py
中的 INSTALLED_APPS
列表
我为我的项目安装了 south 并运行了命令
manage.py schemamigration mysite --initial
在我的终端中它给出了-
aquaman@aquamanpc:~/mysite$ python manage.py schemamigration mysite --initial
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.7/dist-packages/south/management/commands/schemamigration.py", line 73, in handle
migrations = Migrations(app, force_creation=True, verbose_creation=verbosity > 0)
File "/usr/lib/python2.7/dist-packages/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 "/usr/lib/python2.7/dist-packages/south/migration/utils.py", line 41, in app_label_to_app_module
app = models.get_app(app_label)
File "/usr/lib/python2.7/dist-packages/django/db/models/loading.py", line 190, in get_app
raise ImproperlyConfigured("App with label %s could not be found" % app_label)
django.core.exceptions.ImproperlyConfigured: App with label mysite could not be found
和我的 settings.py-
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'south',
'mysite',
)
哪里不对请大家帮帮我
我是 django 的新手
您忘记将 'mysite'
应用程序添加到 setting.py
INSTALLED_APPS
列表