Error: Cannot import 'account'. Check that '' is correct

When I run python runserver in Django, I get the following error.


django.core.exceptions.ImproperlyConfigured: Cannot import 'account'. Check that '' is correct.

I tried everything but could not figure it out.

What should I do?


from django.apps import AppConfig

class AccountConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'account'



Instead of account your app is named accounts. Also, you shared file acconuts/ - is that also your mispell?

class AccountConfig(AppConfig):
    name = 'accounts'   # it has to be exactly as your app name
Back to Top