Asw*_*esh 17 django heroku django-manage.py
我部署了我的django应用程序,当我尝试时
heroku run python manage.py syncdb
Run Code Online (Sandbox Code Playgroud)
我有一个等待进程错误的超时.尚未为系统创建超级用户,尽管我使用以下命令执行syncdb:
heroku run:detached python manage.py createsuperuser
Run Code Online (Sandbox Code Playgroud)
但这并没有促使我为超级用户.
我的系统中没有阻止端口5000.如何让heroku运行(或)如何创建超级用户?
Fra*_*Fra 49
不要分离heroku shell:
heroku run python manage.py createsuperuser
Run Code Online (Sandbox Code Playgroud)
为我工作
在浪费了一整天之后我得到了答案
heroku run python manage.py syncdb
Run Code Online (Sandbox Code Playgroud)
不在学院或办公室局域网上运行才能运行它,您还必须删除系统代理
unset http_proxy
`unset https_proxy`
Run Code Online (Sandbox Code Playgroud)
我希望这个能帮上忙
尝试
heroku run python manage.py shell
Run Code Online (Sandbox Code Playgroud)
然后从那里创建您的超级用户。祝你好运!
| 归档时间: |
|
| 查看次数: |
13189 次 |
| 最近记录: |