2017-08-19 22 views
0

在填充數據庫之後的django中,我開始創建超級用戶,但失敗並顯示錯誤。由於我是django的新手,我不明白錯誤是關於什麼的?由於TTY錯誤,Django createsuperuser無法正常工作

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. 
+0

可能[this](https://askubuntu.com/questions/481906/what-does-tty-stand-for)可以幫助你更好地理解你的問題 –

回答

0

嘗試運行與路徑的終端內部命令manage.py爲你的工作目錄。

+0

我使用anaconda,我在conda的終端與cmd提示符相同 –