“未知命令syncdb”运行“ python manage.py syncdb” [英] "Unknown command syncdb" running "python manage.py syncdb"
问题描述
我想创建一个名为 database1.sqlite的数据库的表,所以我运行命令:
I want to create the tables of one database called "database1.sqlite", so I run the command:
python manage。 py syncdb
python manage.py syncdb
但是执行命令时收到以下错误:
but when I execute the command I receive the following error:
未知命令:'syncdb'
键入'manage.py help'以供使用。
Unknown command: 'syncdb' Type 'manage.py help' for usage.
但是当我运行
manage.py help
manage.py help
我看不到任何可替代的命令
I don`t see any command suspicious to substitute
python manage.py syncdb
python manage.py syncdb
我使用的Python版本:3.4.2我使用的Django版本:1.9
Version of Python I use: 3.4.2 Version of Django I use:1.9
我会非常感谢有人能帮助我解决这个问题。
I would be very grateful if somebody could help me to solve this issue.
在此先感谢并感谢
推荐答案
如果您查看 django 1.9
, syncdb
命令已删除。
If you look at the release notes for django 1.9
, syncdb
command is removed.
请改用 migration
。展望未来,迁移命令将在此处记录
请注意,django-1.9发行版目前尚不稳定。
Please note that the django-1.9 release is not stable as of today.
编辑:Django 1.9现已稳定
Django 1.9 is stable now
这篇关于“未知命令syncdb”运行“ python manage.py syncdb”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!