![](/img/trans.png)
[英]Running Django custom manage.py task on Heroku - Importing Issues
[英]Chatterbot Django and Heroku (Issues Running Example)
我現在遇到了幾個問題,並且幾乎可以使用Chatterbot示例來在Heroku上運行Django。
這是我的示例頁面。 https://polar-basin-92507.herokuapp.com/
看日志似乎是問題所在
OperationalError:沒有這樣的表:django_chatterbot_statement
完整日志https://hastebin.com/mucanobuki.sql
git源https://github.com/gunthercox/ChatterBot/tree/master/examples/django_app/example_app
據我所知,他們的示例設置為使用sqlite3,但heroku不支持該示例,我需要以某種方式將其切換到postgres? 不確定,這是我想要的指導。
您需要在heroku中設置Postgresql。 只需將這些行添加到此處的 settings.py文件中
import dj_database_url
db_from_env = dj_database_url.config()
DATABASES['default'].update(db_from_env)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.