簡體   English   中英

Chatterbot Django和Heroku(問題正在運行的示例)

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM