【问题标题】:Python Manage.py Commands Not Recognized on HerokuHeroku 无法识别 Python Manage.py 命令
【发布时间】:2016-03-15 18:34:03
【问题描述】:

尝试运行 heroku run python manage.py migrate --remote [my app] 并输出子命令列表。尝试了其他各种 django 命令,结果相同,从“shell”到我发明的一些自定义命令。

heroku run python 工作正常,其他 heroku 命令 (run ls) 也一样。目前 django 应用程序有问题吗?我没有编辑我的 heroku 设置或做任何与 heroku 相关的事情(回滚到更远的部署并且仍然损坏,所以最近没有任何代码更改)

     Running python manage.py help migrate on tempotrader-staging... up, run.7740
    /app/.heroku/python/lib/python2.7/site-packages/stream_django/enrich.py:3: RemovedInDjango19Warning: The utilities in django.db.models.loading are deprecated in favor of the new application loading system.
      from django.db.models.loading import get_model


    Type 'manage.py help <subcommand>' for help on a specific subcommand.

    Available subcommands:

    [account]
        account_emailconfirmationmigration
        account_unsetmultipleprimaryemails

    [auth]
        changepassword
        createsuperuser

    [avatar]
        rebuild_avatars

    [charting]
        update_portfolios

    [django]
        check
        compilemessages
        createcachetable
        dbshell
        diffsettings
        dumpdata
        flush
        inspectdb
        loaddata
        makemessages
        makemigrations
        migrate
        runfcgi
        shell
        showmigrations
        sql
        sqlall
        sqlclear
        sqlcustom
        sqldropindexes
        sqlflush
        sqlindexes
        sqlmigrate
        sqlsequencereset

..... etc

【问题讨论】:

    标签: python django heroku django-manage.py manage.py


    【解决方案1】:

    【讨论】: