ModuleNotFoundError: No module named ‘api.app’

I’ve started following Tech with Tim’s series Django & React Tutorial #1 - Full Stack Web App With Python & JavaScript Django & React Tutorial #1 - Full Stack Web App With Python & JavaScript - YouTube , and I keep getting this error makemigrations

Upon executing the command in the terminal, I received this error

ryanmg@Ryans-MacBook-Pro React-Django-Project % python3 /Users/ryanmg/Documents/Coding/React-Django-Project/music_controller/manage.py makemigrations
Traceback (most recent call last):
File “/Users/ryanmg/Documents/Coding/React-Django-Project/music_controller/manage.py”, line 22, in
main()
File “/Users/ryanmg/Documents/Coding/React-Django-Project/music_controller/manage.py”, line 18, in main
execute_from_command_line(sys.argv)
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/django/core/management/init.py”, line 446, in execute_from_command_line
utility.execute()
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/django/core/management/init.py”, line 420, in execute
django.setup()
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/django/init.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/django/apps/registry.py”, line 91, in populate
app_config = AppConfig.create(entry)
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/django/apps/config.py”, line 213, in create
mod = import_module(mod_path)
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘api.apps’

My directory listings are as follows.

This is my settings.py file. I have added the reference "polls.app.PollsConfig "

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'api.apps.ApiConfig',
    'rest_framework',
]

This is my apps.py file

from django.apps import AppConfig


class ApiConfig(AppConfig):
    # default_auto_field = 'django.db.models.BigAutoField'
    name = 'api'

I also had this error , i solved it by removing the app directory from the main project directory.

They should both be in the same file .

In this photo " api " in the app directory and " learning " is the project directory.