Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

Open
YuzhouZhang opened this issue May 25, 2020 · 2 comments

Comments

@YuzhouZhang
Copy link

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.

@SystemDZ
Copy link

SystemDZ commented Jan 3, 2021

You confused class name with it's attribute

in your settings.py then INSTALLED_APPS
change AppConfig to ApiConfig

@toffeeandlisa
Copy link

I don't know if answering this after one year is against the rules of github, but you are an anonimous hero. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants