title: ModuleNotFoundError: No module named 'my_app’, app already in INSTALLED_APPS
body: <p>I’m trying to deploy my Django app through Heroku but I’m getting a <code>ModuleNotFound error</code> after running a production environment with gunicorn wsgi path. My app is included in settings.py and it was working fine while in the development environment. But now I’m getting errors for deployment.
  I have problems with how my project is structured, thus <code>Procfile</code> does not leave in the same directory as manage.py, and I believe this could be the issue. Any hint or help is more than appreciated.</p>
  <p><strong>Directory structure</strong></p>
  <pre><code> &gt;FINALPROJECT(root)
      &gt; .vscode
      &gt; project5
          &gt; brainSkills
             &gt; migrations
             &gt; static
             &gt; templates
             apps.py
             models.py
             urls.py
             views.py
          &gt; project5
             _init_.py
             settings.py
             wsgi.py
          _init_.py
          manage.py
      &gt; venv
      .env
      .gitignore
      Procfile
      README.md
      requirements.txt
  </code></pre>
  <p><strong>Procfile</strong></p>
  <pre><code>web: gunicorn project5.project5.wsgi
  </code></pre>
  <p><strong>wsgi.py</strong></p>
  <pre><code>import os
   
  from django.core.wsgi import get_wsgi_application
   
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project5.project5.settings')
   
  application = get_wsgi_application()
  
  </code></pre>
  <p><strong>setting.py</strong></p>
  <pre><code>import os
  from pathlib import Path
  from dotenv import load_dotenv
  
  INSTALLED_APPS = [
     'brainSkills',
     'django.contrib.admin',
     'django.contrib.auth',
     'django.contrib.contenttypes',
     'django.contrib.sessions',
     'django.contrib.messages',
     'django.contrib.staticfiles',
  ]
  
  ROOT_URLCONF = 'project5.urls'
  
  WSGI_APPLICATION = 'project5.wsgi.application'
  
  </code></pre>
  <p><strong>Error after <code>gunicorn project5.project5.wsgi</code> or <code>Heroku local</code></strong></p>
  <pre><code>5:32:28 PM web.1 |    File &quot;/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py&quot;, line 127, in import_module
  5:32:28 PM web.1 |      return _bootstrap._gcd_import(name[level:], package, level)
  5:32:28 PM web.1 |    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import
  5:32:28 PM web.1 |    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load
  5:32:28 PM web.1 |    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 973, in _find_and_load_unlocked
  5:32:28 PM web.1 |  ModuleNotFoundError: No module named 'brainSkills'
  5:32:28 PM web.1 |  [2020-10-12 21:32:28 +0000] [57691] [INFO] Worker exiting (pid: 57691)
  5:32:28 PM web.1 |  [2020-10-12 17:32:28 -0400] [57689] [INFO] Shutting down: Master
  5:32:28 PM web.1 |  [2020-10-12 17:32:28 -0400] [57689] [INFO] Reason: Worker failed to boot.
  [DONE] Killing all processes with signal  SIGINT
  5:32:28 PM web.1 Exited with exit code null
  
  </code></pre>