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

Django 创建超级管理员报错:Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually.Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually.

安装Django后生成迁移文件后,需要创建超级管理员

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

解决办法就是使用 windows自带的命令行运行创建命令,或者用PowerShell都可以。



Tags python

留言(0)

评论