django.core.exceptions.ImproperlyConfigured: Cannot import 'Blackhole'. Check that 'web.apps.BlackholeConfig.name' is correct.

Hi i have this error , using python 3.10 and django 5.0

/app/BlackHole/Blackhole# python3 manage.py check

Traceback (most recent call last):
File “/usr/local/lib/python3.10/dist-packages/django/apps/config.py”, line 209, in create
app_module = import_module(app_name)
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘Blackhole’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/app/BlackHole/Blackhole/manage.py”, line 15, in
execute_from_command_line(sys.argv)
File “/usr/local/lib/python3.10/dist-packages/django/core/management/init.py”, line 442, in execute_from_command_line
utility.execute()
File “/usr/local/lib/python3.10/dist-packages/django/core/management/init.py”, line 416, in execute
django.setup()
File “/usr/local/lib/python3.10/dist-packages/django/init.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “/usr/local/lib/python3.10/dist-packages/django/apps/registry.py”, line 91, in populate
app_config = AppConfig.create(entry)
File “/usr/local/lib/python3.10/dist-packages/django/apps/config.py”, line 211, in create
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Cannot import ‘Blackhole’. Check that ‘web.apps.BlackholeConfig.name’ is correct.

Please clarify your directory structure.

Is “/app/BlackHole” your project directory? Or is “/app/BlackHole/Blackhole” the project directory?

Also, please post your INSTALLED_APPS setting, and if you have an apps.py file in your “Blackhole” app, post it as well.