添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account django.core.exceptions.ImproperlyConfigured: 'chatterbot.ext.django_chatterbot' must supply a name attribute. #1983 django.core.exceptions.ImproperlyConfigured: 'chatterbot.ext.django_chatterbot' must supply a name attribute. #1983 YuzhouZhang opened this issue May 25, 2020 · 2 comments

After I integrate with Django, I got this exception when I execute "python manager.py runserver":

Traceback (most recent call last):
File "C:\Users\mamajingjie\AppData\Local\Programs\Python\Python36\lib\site-packages\django\apps\config.py", line 149, in create
app_name = cls.name
AttributeError: type object 'AppConfig' has no attribute 'name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "manage.py", line 21, in
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "C:\Users\mamajingjie\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management_ init _.py", line 381, in execute_from_command_line
utility.execute()
File "C:\Users\mamajingjie\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management_ init _.py", line 357, in execute
django.setup()
File "C:\Users\mamajingjie\AppData\Local\Programs\Python\Python36\lib\site-packages\django_ init _.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\mamajingjie\AppData\Local\Programs\Python\Python36\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "C:\Users\mamajingjie\AppData\Local\Programs\Python\Python36\lib\site-packages\django\apps\config.py", line 152, in create
"'%s' must supply a name attribute." % entry)
django.core.exceptions.ImproperlyConfigured: 'chatterbot.ext.django_chatterbot' must supply a name attribute.