我在南方与我的 django 项目一起工作时遇到了麻烦,我遵循了关于将应用程序转换为南方的南方文档,也看了这里(为什么我的南方迁移不起作用?)但一切都是徒劳的。
添加到南INSTALLED_APPS
并运行后syncdb
,
Synced:
> django.contrib.messages
> django.contrib.staticfiles
> smartmin
> nsms.console
> django_extensions
> pagination
> restaurant_detail
> live
> debug_toolbar
> orders
> django.contrib.admindocs
Not synced (use migrations):
- django.contrib.auth
- django.contrib.contenttypes
- django.contrib.sessions
- django.contrib.sites
- guardian
- south
- django_quickblocks
- rapidsms
- rapidsms_httprouter
- sorl.thumbnail
- djangoratings
- agon_ratings
- django.contrib.admin
(use ./manage.py migrate to migrate these)
此时我执行此命令,python manage.py migrate
这给出了错误django.db.utils.DatabaseError: relation "south_migrationhistory" does not exist
LINE 1: ...gration", "south_migrationhistory"."applied" FROM "south_mig...
我在这里做错了什么?