Python管理.pyHeroku上无法识别的命令

2024-04-26 20:34:49 发布

您现在位置:Python中文网/ 问答频道 /正文

尝试运行heroku运行python管理.pymigrate--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

Tags: djangoruninpy命令appdbheroku