django - Heroku django 应用程序创建 super 用户

标签 django heroku django-manage.py

我部署了我的 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/

相关文章:

python - Django 自定义命令不适用于参数

python - django-cms makemigrations错误: No module named 'packaging'

mysql - 从 Django 调用 MySQL 中的 DATE_FORMAT() 失败

Django Gevent 集成

python - 在 Django 中装饰站点地图 View

node.js - 如何为 heroku nodejs web 应用程序配置 nginx

django - 使用基于类的 View django过滤选项

提供预编译 Assets 时,Heroku H12 请求超时错误

heroku - 公钥 - 应用程序错误

mysql - Django - sqlclear 无法删除具有 AbstractUser 外键约束的数据库