我部署了我的 django 应用程序,当我尝试时
heroku run python manage.py syncdb
等待进程错误超时。尚未为系统创建 super 用户,但我使用以下方法进行了同步数据库:
heroku run:detached python manage.py createsuperuser
但这并没有提示我输入 super 用户。
我的系统中没有阻止端口 5000。如何让 heroku 运行(或)如何创建 super 用户?
最佳答案
不要分离heroku shell:
heroku run python manage.py createsuperuser
为我工作
关于django - Heroku django 应用程序创建 super 用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22081556/