Superuser creation skipped due to not running in a TTY创建超级管理员报错

来源:互联网 发布:淘宝客服每日知识总结 编辑:程序博客网 时间:2024/06/04 23:33

django创建超级管理员时报错:

Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually.


解决办法:

在当前系统的命令窗口中使用创建的命令python manage.py createsuperuser就可以了

比如,当前是windows系统,就在cmd中执行创建的命令

阅读全文
0 0