我有一个Django项目,我第一次尝试部署 Heroku云。项目结构如下,
public void DoSomething()
{
Print(getString());
Do something...
}
public void DoSomething1()
{
Print(getString());
Do something different...
}
public string getString()
{
return "ABC";
}
我的project就在这里,我跟着this教程。我在# Project structure:
.\Project folder\ -
|
|- .\env\ (Virtual enviroment )
|
|- .\src\ -
| |
| |- .\main\ -
| | |
| | |- admin.py (Output tables data in to admin dashboard)
| | |- models.py (Classes os DB tables)
| | |- serializers.py (Serializing of data output in API)
| | |- views.py (Custome API views)
| | |- ...
| |
| |- .\users_groups\ -
| | |
| | |- settings.py (Project settings)
| | |- urls.py ( file with URL's reg. ex. patterns)
| | |- wsgi.py
| |
| |- .\templates\
| |
| |- manage.py
| |- db.sqlite3
|
|- .\app-messages
|
|- ReadMe.txt
|
|- requirements.txt (file with list of all dependencies for app)
内,在主人.\Project folder\
时,我得到了一些错误。我使用命令推送,
pushing
我收到错误消息
git push heroku master
我该怎么做才能解决这个问题?
答案 0 :(得分:0)
试试这个
heroku buildpacks:set heroku/python
然后按