title: Gunicorn/Django, ImportError: No module named application.wsgi
body: <p>I'm trying to deploy a Django app using Heroku, but I'm running into the following error: "ImportError: No module named myproject.wsgi".</p>
  
  <p>My project is configured as such:</p>
  
  <pre><code>my-project
  │   Procfile
  │   requirements.txt
  │   runtime.txt
  │   README.md
  │
  ├───myproject
  │   │   db.sqlite3
  │   │   django
  │   │   django._file_
  │   │   import
  │   │   manage.py
  |   |
  │   ├───myproject
  |   |   |    wsgi.py
  |   |   |    settings.py
  |   |   |    urls.py
  |   |   |    _init_.py
  |   |   |
  |   |   ├───_pycache_
  |   | 
  │   ├───venv
  ...
  </code></pre>
  
  <p>My wgsi.py file is configured as such:</p>
  
  <pre><code>import os
  import signal
  import sys
  import traceback
  import time
  
  from django.core.wsgi import get_wsgi_application
  from whitenoise.django import DjangoWhiteNoise
  
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings")
  
  application = get_wsgi_application()
  application = DjangoWhiteNoise(application)
  </code></pre>
  
  <p>My Procfile contains the following:</p>
  
  <pre><code>web: gunicorn myproject.wsgi:application --log-file -
  </code></pre>
  
  <p>Why is this producing an error?</p>