您的位置:首页 > 编程语言 > Go语言

django-Unknown command: 'syncdb'

2016-09-15 11:06 1151 查看
这是在新版中使用migrate代替syscdb。看一下官方介绍就知道了

The sqlall management command was removed in Django 1.9, along with syncdb.

Since Django 1.7, you shouldn't use syncdb. Instead, you should create migrations with makemigrations and perform the migrations with migrate. If you work through the polls tutorial, it explains how to use migrations.

There is now an sqlmigrate command that displays the sql commands for a specific migration, without performing the migration.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: