heroku: no default language could be detected for this app

后端 未结 11 803
予麋鹿
予麋鹿 2020-12-03 22:40

First time using Heroku. Trying to push. I have run the command:

heroku create --buildpack heroku/python

and it displayed

$ hero         


        
11条回答
  •  执念已碎
    2020-12-03 23:21

    Create Pipfile file in root folder and add python version and packages required for application. check sample file here

    [[source]]
    
    url = "https://pypi.python.org/simple"
    verify_ssl = true
    
    
    [packages]
    
    django = "*"
    gunicorn = "*"
    django-heroku = "*"
    
    
    [requires]
    
    python_version = "3.6"
    

    Also check Configuring Django Apps for Heroku

提交回复
热议问题