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.
相关文章推荐
- Python—Django配置问题:Unknown command: 'syncdb'
- 执行python manage.py syncdb,报Unknown command: 'syncdb'
- django manage.py Unknown command: 'runfcgi'
- python django 初始化数据库时提示unknow command:'syncdb'
- python manage.py syncdb Unknown command: 'syncdb'问题解决方法
- Django中因south导致Syncdb命令无法建立表的问题
- MySQL 采用 source 命令导入出现 unknown command '\'
- telnet连接Android模拟器后,输入命令时出现"KO: unknown command, try 'help' "
- cmd:scrapy 中出现Unknown command: crawl问题
- laravel 5.4 redis 报错 'Predis\Response\ServerException' with message 'ERR unknown command 'EVAL'' 201
- ERROR at line 46: Unknown command '\'
- MySQL数据库导入错误:ERROR 1064 (42000) 和 ERROR at line xx: Unknown command '\Z'.
- Mysql 导入文件的时候出现Unknown command '\\'的解决方法
- django学习随笔:execute_from_command_line
- LogStash启动报错:<Redis::CommandError: ERR unknown command 'script'>与batch_count 的 配置
- MySQLl导入数据出现--unknown command '\'
- MySQL导入sql文件出现unknown command '\'
- Android ERROR: Unknown command 'crunch' 解决方法
- django运行错误:wrong number of arguments for 'set' command
- 给django command写option选项