我在Django,但我不确定这是否重要。不管怎样,我得到了一个Application Error
,当我检查日志时,我看到了错误:
ImportError: No module named redlibros.wsgi
这很好,因为wsgi文件不是name”redlibros.wsgi文件“,我甚至不知道它从哪里来的名字。模块名为
WSGI_APPLICATION = 'letrasclub.wsgi.application' # on my settings
web: gunicorn letrasclub.wsgi --log-file - # on my procfile
在我的文件夹上看起来是这样的:
LetrasClub
letrasclub
wsgi.py
templates
static
...
知道哪里能找到错误吗?你知道吗
编辑
好的,一些额外的信息:我有一个不同的回购,不同的Heroku遥控器。我复制了那个repo,修改了应用程序,创建了一个新的Heroku遥控器,然后推到了新的。你知道吗
所以,如果我写
git remote -v
heroku https://git.heroku.com/letrasclub2.git (fetch)
heroku https://git.heroku.com/letrasclub2.git (push)
origin https://github.com/Alejoss/LetrasClub2.0.git (fetch)
origin https://github.com/Alejoss/LetrasClub2.0.git (push)
看起来很好,如果我去旧的应用程序位置,并编写与旧遥控器相同的命令,即与redlibros.wsgi文件“应用程序,完美。你知道吗
现在,为什么当我尝试将新的应用程序推送到新的heroku remote时,我得到的错误意味着heroku正在查找旧的wsgi文件,我更改了wsgi名称,我更改了Procfile,我更改了设置上的wsgi文件声明,我遗漏了什么?你知道吗
你看错项目了。你知道吗
你看的是https://github.com/Alejoss/redlibros(我猜这是你的项目),而不是https://github.com/Alejoss/LetrasClub2.0
相关问题 更多 >
编程相关推荐