title: Module Not Found Error: No Module Named 'my_project.settings' django gunicorn
body: <p>I am trying to deploy on heroku but first I am trying to run on my machine but I keep getting the Module Not Found Error. My directory structure looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/RA6XN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RA6XN.png" alt="enter image description here"></a></p>
  
  <p>To make it more clear, I have a folder called 'imperialtheatre' that holds the venv and requirements and inside that folder i have a folder called 'imperialtheatre' which holds the django project with <code>manage.py</code> etc. </p>
  
  <p>Why am I getting this error?</p>
  
  <p>I am running this command:</p>
  
  <p><code>gunicorn imperialtheatre.imperialtheatre.wsgi:application -t 120 -w 8 -k gevent --max-requests 250 --log-level debug</code></p>
  
  <p>wsgi.py file:</p>
  
  <pre><code>import os
  
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "imperialtheatre.settings")
  from django.core.wsgi import get_wsgi_application
  application = get_wsgi_application()
  
  from whitenoise.django import DjangoWhiteNoise
  application = DjangoWhiteNoise(application)
  </code></pre>