Django ChatterB公司

2024-05-15 07:58:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我想将chatterbot作为Django应用程序chatbot集成到我现有的Django应用程序中。在

我的应用程序结构是: enter image description here

现在,他们是一个聊天机器人文件夹,我要做的一切聊天机器人在那个目录。在不同的视图页中,例如“http://127.0.0.1:8000/chatbot”。 有人能帮我这个忙吗,我是新手。在

在我的设置.py,我添加了:

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'gameplay',
'player',
'crispy_forms',
'chatterbot.ext.django_chatterbot'
]

在我的网址.py公司名称:

^{pr2}$

现在,当我运行python时管理.py运行服务器,我收到以下错误: enter image description here

请指正我,谢谢。在


Tags: installeddjangopy目录文件夹视图应用程序http