title: how to fix moduleNotfoundErreor on deplying Django app to Heroku?
body: <p>I have been trying to deploy my Django project on Heroku but Heroku is not tracking my project app name as presented in the <code>Procfile</code>.
  Honestly <code>django_profile_viewer</code> is the exact name of the project that has my settings file.</p>
  <pre><code>#My procfile
  
  web: gunicorn django_profile_viewer.wsgi:application --log-file - --log-level debug
  python manage.py collectstatic --noinput
  manage.py migrate
  
  </code></pre>
  <pre><code>#Heroku logs
  
  
  
  2022-02-13T10:46:43.042362+00:00 app[web.1]:   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1030, in _gcd_import
  2022-02-13T10:46:43.042362+00:00 app[web.1]:   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1007, in _find_and_load
  2022-02-13T10:46:43.042363+00:00 app[web.1]:   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 984, in _find_and_load_unlocked
  2022-02-13T10:46:43.042363+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_profile_viewer'
  2022-02-13T10:46:43.042446+00:00 app[web.1]: [2022-02-13 10:46:43 +0000] [10] [INFO] Worker exiting (pid: 10)
  2022-02-13T10:46:43.054936+00:00 app[web.1]: [2022-02-13 10:46:43 +0000] [4] [WARNING] Worker with pid 10 was terminated due to signal 15
  2022-02-13T10:46:43.154082+00:00 app[web.1]: [2022-02-13 10:46:43 +0000] [4] [INFO] Shutting down: Master
  2022-02-13T10:46:43.154125+00:00 app[web.1]: [2022-02-13 10:46:43 +0000] [4] [INFO] Reason: Worker failed to boot.
  2022-02-13T10:46:43.344541+00:00 heroku[web.1]: Process exited with status 3
  2022-02-13T10:46:43.459875+00:00 heroku[web.1]: State changed from starting to crashed
  2022-02-13T10:52:53.470088+00:00 heroku[router]: at=error code=H10 desc=&quot;App crashed&quot; method=GET path=&quot;/&quot; host=profile-viewer-app.herokuapp.com request_id=430d2f5f-4ba3-4780-8cf8-ce1990237951 fwd=&quot;197.239.4.35&quot; dyno= connect= service= status=503 bytes= protocol=https
  2022-02-13T10:52:59.973950+00:00 heroku[web.1]: State changed from crashed to starting
  2022-02-13T10:53:04.200202+00:00 heroku[web.1]: Starting process with command `gunicorn django_profile_viewer.wsgi:application --log-file - --log-level debug`
  2022-02-13T10:53:05.838609+00:00 heroku[web.1]: Process exited with status 3
  2022-02-13T10:53:05.951233+00:00 heroku[web.1]: State changed from starting to crashed
  2022-02-13T10:53:05.633490+00:00 app[web.1]: [2022-02-13 10:53:05 +0000] [4] [DEBUG] Current configuration:
  2022-02-13T10:53:05.633504+00:00 app[web.1]:   config: ./gunicorn.conf.py
  2022-02-13T10:53:05.633504+00:00 app[web.1]:   wsgi_app: None
  2022-02-13T10:53:05.633504+00:00 app[web.1]:   bind: ['0.0.0.0:26090']
  2022-02-13T10:53:05.633504+00:00 app[web.1]:   backlog: 2048
  2022-02-13T10:53:05.633505+00:00 app[web.1]:   workers: 2
  2022-02-13T10:53:05.633505+00:00 app[web.1]:   worker_class: sync
  2022-02-13T10:53:05.633505+00:00 app[web.1]:   threads: 1
  2022-02-13T10:53:05.633505+00:00 app[web.1]:   worker_connections: 1000
  2022-02-13T10:53:05.633505+00:00 app[web.1]:   max_requests: 0
  2022-02-13T10:53:05.633506+00:00 app[web.1]:   max_requests_jitter: 0
  2022-02-13T10:53:05.633506+00:00 app[web.1]:   timeout: 30
  2022-02-13T10:53:05.633506+00:00 app[web.1]:   graceful_timeout: 30
  2022-02-13T10:53:05.633506+00:00 app[web.1]:   keepalive: 2
  2022-02-13T10:53:05.633506+00:00 app[web.1]:   limit_request_line: 4094
  2022-02-13T10:53:05.633507+00:00 app[web.1]:   limit_request_fields: 100
  2022-02-13T10:53:05.633507+00:00 app[web.1]:   limit_request_field_size: 8190
  2022-02-13T10:53:05.633507+00:00 app[web.1]:   reload: False
  2022-02-13T10:53:05.633507+00:00 app[web.1]:   reload_engine: auto
  2022-02-13T10:53:05.633508+00:00 app[web.1]:   reload_extra_files: []
  2022-02-13T10:53:05.633508+00:00 app[web.1]:   spew: False
  2022-02-13T10:53:05.633508+00:00 app[web.1]:   check_config: False
  2022-02-13T10:53:05.633508+00:00 app[web.1]:   print_config: False
  2022-02-13T10:53:05.633509+00:00 app[web.1]:   preload_app: False
  2022-02-13T10:53:05.633509+00:00 app[web.1]:   sendfile: None
  2022-02-13T10:53:05.633509+00:00 app[web.1]:   reuse_port: False
  2022-02-13T10:53:05.633509+00:00 app[web.1]:   chdir: /app
  2022-02-13T10:53:05.633509+00:00 app[web.1]:   daemon: False
  2022-02-13T10:53:05.633510+00:00 app[web.1]:   raw_env: []
  2022-02-13T10:53:05.633510+00:00 app[web.1]:   pidfile: None
  2022-02-13T10:53:05.633510+00:00 app[web.1]:   worker_tmp_dir: None
  2022-02-13T10:53:05.633510+00:00 app[web.1]:   user: 25211
  2022-02-13T10:53:05.633510+00:00 app[web.1]:   group: 25211
  2022-02-13T10:53:05.633511+00:00 app[web.1]:   umask: 0
  2022-02-13T10:53:05.633511+00:00 app[web.1]:   initgroups: False
  2022-02-13T10:53:05.633511+00:00 app[web.1]:   tmp_upload_dir: None
  2022-02-13T10:53:05.633521+00:00 app[web.1]:   secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
  2022-02-13T10:53:05.633521+00:00 app[web.1]:   forwarded_allow_ips: ['*']
  2022-02-13T10:53:05.633521+00:00 app[web.1]:   accesslog: -
  2022-02-13T10:53:05.633522+00:00 app[web.1]:   disable_redirect_access_to_syslog: False
  2022-02-13T10:53:05.633522+00:00 app[web.1]:   access_log_format: %(h)s %(l)s %(u)s %(t)s &quot;%(r)s&quot; %(s)s %(b)s &quot;%(f)s&quot; &quot;%(a)s&quot;
  2022-02-13T10:53:05.633522+00:00 app[web.1]:   errorlog: -
  2022-02-13T10:53:05.633523+00:00 app[web.1]:   loglevel: debug
  2022-02-13T10:53:05.633523+00:00 app[web.1]:   capture_output: False
  2022-02-13T10:53:05.633523+00:00 app[web.1]:   logger_class: gunicorn.glogging.Logger
  2022-02-13T10:53:05.633523+00:00 app[web.1]:   logconfig: None
  2022-02-13T10:53:05.633524+00:00 app[web.1]:   logconfig_dict: {}
  2022-02-13T10:53:05.633524+00:00 app[web.1]:   syslog_addr: udp://localhost:514
  2022-02-13T10:53:05.633524+00:00 app[web.1]:   syslog: False
  2022-02-13T10:53:05.633524+00:00 app[web.1]:   syslog_prefix: None
  2022-02-13T10:53:05.633525+00:00 app[web.1]:   syslog_facility: user
  2022-02-13T10:53:05.633525+00:00 app[web.1]:   enable_stdio_inheritance: False
  2022-02-13T10:53:05.633525+00:00 app[web.1]:   statsd_host: None
  2022-02-13T10:53:05.633525+00:00 app[web.1]:   dogstatsd_tags: 
  2022-02-13T10:53:05.633525+00:00 app[web.1]:   statsd_prefix: 
  2022-02-13T10:53:05.633526+00:00 app[web.1]:   proc_name: None
  2022-02-13T10:53:05.633526+00:00 app[web.1]:   default_proc_name: django_profile_viewer.wsgi:application
  2022-02-13T10:53:05.633526+00:00 app[web.1]:   pythonpath: None
  2022-02-13T10:53:05.633526+00:00 app[web.1]:   paste: None
  2022-02-13T10:53:05.633527+00:00 app[web.1]:   on_starting: &lt;function OnStarting.on_starting at 0x7f7838711670&gt;
  2022-02-13T10:53:05.633527+00:00 app[web.1]:   on_reload: &lt;function OnReload.on_reload at 0x7f7838711790&gt;
  2022-02-13T10:53:05.633527+00:00 app[web.1]:   when_ready: &lt;function WhenReady.when_ready at 0x7f78387118b0&gt;
  2022-02-13T10:53:05.633527+00:00 app[web.1]:   pre_fork: &lt;function Prefork.pre_fork at 0x7f78387119d0&gt;
  2022-02-13T10:53:05.633528+00:00 app[web.1]:   post_fork: &lt;function Postfork.post_fork at 0x7f7838711af0&gt;
  2022-02-13T10:53:05.633528+00:00 app[web.1]:   post_worker_init: &lt;function PostWorkerInit.post_worker_init at 0x7f7838711c10&gt;
  2022-02-13T10:53:05.633528+00:00 app[web.1]:   worker_int: &lt;function WorkerInt.worker_int at 0x7f7838711d30&gt;
  2022-02-13T10:53:05.633529+00:00 app[web.1]:   worker_abort: &lt;function WorkerAbort.worker_abort at 0x7f7838711e50&gt;
  2022-02-13T10:53:05.633529+00:00 app[web.1]:   pre_exec: &lt;function PreExec.pre_exec at 0x7f7838711f70&gt;
  2022-02-13T10:53:05.633529+00:00 app[web.1]:   pre_request: &lt;function PreRequest.pre_request at 0x7f78387260d0&gt;
  2022-02-13T10:53:05.633529+00:00 app[web.1]:   post_request: &lt;function PostRequest.post_request at 0x7f7838726160&gt;
  2022-02-13T10:53:05.633530+00:00 app[web.1]:   child_exit: &lt;function ChildExit.child_exit at 0x7f7838726280&gt;
  2022-02-13T10:53:05.633530+00:00 app[web.1]:   worker_exit: &lt;function WorkerExit.worker_exit at 0x7f78387263a0&gt;
  2022-02-13T10:53:05.633530+00:00 app[web.1]:   nworkers_changed: &lt;function NumWorkersChanged.nworkers_changed at 0x7f78387264c0&gt;
  2022-02-13T10:53:05.633530+00:00 app[web.1]:   on_exit: &lt;function OnExit.on_exit at 0x7f78387265e0&gt;
  2022-02-13T10:53:05.633531+00:00 app[web.1]:   proxy_protocol: False
  2022-02-13T10:53:05.633531+00:00 app[web.1]:   proxy_allow_ips: ['127.0.0.1']
  2022-02-13T10:53:05.633531+00:00 app[web.1]:   keyfile: None
  2022-02-13T10:53:05.633531+00:00 app[web.1]:   certfile: None
  2022-02-13T10:53:05.633532+00:00 app[web.1]:   ssl_version: 2
  2022-02-13T10:53:05.633532+00:00 app[web.1]:   cert_reqs: 0
  2022-02-13T10:53:05.633532+00:00 app[web.1]:   ca_certs: None
  2022-02-13T10:53:05.633532+00:00 app[web.1]:   suppress_ragged_eofs: True
  2022-02-13T10:53:05.633533+00:00 app[web.1]:   do_handshake_on_connect: False
  2022-02-13T10:53:05.633533+00:00 app[web.1]:   ciphers: None
  2022-02-13T10:53:05.633533+00:00 app[web.1]:   raw_paste_global_conf: []
  2022-02-13T10:53:05.633533+00:00 app[web.1]:   strip_header_spaces: False
  2022-02-13T10:53:05.633785+00:00 app[web.1]: [2022-02-13 10:53:05 +0000] [4] [INFO] Starting gunicorn 20.1.0
  2022-02-13T10:53:05.634204+00:00 app[web.1]: [2022-02-13 10:53:05 +0000] [4] [DEBUG] Arbiter booted
  2022-02-13T10:53:05.634256+00:00 app[web.1]: [2022-02-13 10:53:05 +0000] [4] [INFO] Listening at: http://0.0.0.0:26090 (4)
  2022-02-13T10:53:05.634312+00:00 app[web.1]: [2022-02-13 10:53:05 +0000] [4] [INFO] Using worker: sync
  2022-02-13T10:53:05.638104+00:00 app[web.1]: [2022-02-13 10:53:05 +0000] [9] [INFO] Booting worker with pid: 9
  2022-02-13T10:53:05.641930+00:00 app[web.1]: [2022-02-13 10:53:05 +0000] [9] [ERROR] Exception in worker process
  2022-02-13T10:53:05.641931+00:00 app[web.1]: Traceback (most recent call last):
  2022-02-13T10:53:05.641931+00:00 app[web.1]:   File &quot;/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py&quot;, line 589, in spawn_worker
  2022-02-13T10:53:05.641932+00:00 app[web.1]:     worker.init_process()
  2022-02-13T10:53:05.641932+00:00 app[web.1]:   File &quot;/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py&quot;, line 134, in init_process
  2022-02-13T10:53:05.641932+00:00 app[web.1]:     self.load_wsgi()
  2022-02-13T10:53:05.641933+00:00 app[web.1]:   File &quot;/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py&quot;, line 146, in load_wsgi
  2022-02-13T10:53:05.641933+00:00 app[web.1]:     self.wsgi = self.app.wsgi()
  2022-02-13T10:53:05.641933+00:00 app[web.1]:   File &quot;/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py&quot;, line 67, in wsgi
  2022-02-13T10:53:05.641933+00:00 app[web.1]:     self.callable = self.load()
  2022-02-13T10:53:05.641934+00:00 app[web.1]:   File &quot;/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py&quot;, line 58, in load
  2022-02-13T10:53:05.641934+00:00 app[web.1]:     return self.load_wsgiapp()
  2022-02-13T10:53:05.641934+00:00 app[web.1]:   File &quot;/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py&quot;, line 48, in load_wsgiapp
  2022-02-13T10:53:05.641934+00:00 app[web.1]:     return util.import_app(self.app_uri)
  2022-02-13T10:53:05.641934+00:00 app[web.1]:   File &quot;/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py&quot;, line 359, in import_app
  2022-02-13T10:53:05.641935+00:00 app[web.1]:     mod = importlib.import_module(module)
  2022-02-13T10:53:05.641935+00:00 app[web.1]:   File &quot;/app/.heroku/python/lib/python3.9/importlib/__init__.py&quot;, line 127, in import_module
  2022-02-13T10:53:05.641935+00:00 app[web.1]:     return _bootstrap._gcd_import(name[level:], package, level)
  2022-02-13T10:53:05.641935+00:00 app[web.1]:   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1030, in _gcd_import
  2022-02-13T10:53:05.641935+00:00 app[web.1]:   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1007, in _find_and_load
  2022-02-13T10:53:05.641936+00:00 app[web.1]:   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 972, in _find_and_load_unlocked
  2022-02-13T10:53:05.641936+00:00 app[web.1]:   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 228, in _call_with_frames_removed
  2022-02-13T10:53:05.641936+00:00 app[web.1]:   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1030, in _gcd_import
  2022-02-13T10:53:05.641936+00:00 app[web.1]:   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1007, in _find_and_load
  2022-02-13T10:53:05.641936+00:00 app[web.1]:   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 984, in _find_and_load_unlocked
  2022-02-13T10:53:05.641937+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_profile_viewer'
  2022-02-13T10:53:05.642036+00:00 app[web.1]: [2022-02-13 10:53:05 +0000] [9] [INFO] Worker exiting (pid: 9)
  2022-02-13T10:53:05.676389+00:00 app[web.1]: [2022-02-13 10:53:05 +0000] [4] [INFO] Shutting down: Master
  2022-02-13T10:53:05.676413+00:00 app[web.1]: [2022-02-13 10:53:05 +0000] [4] [INFO] Reason: Worker failed to boot.
  2022-02-13T10:52:35.000000+00:00 app[api]: Build started by user 
  2022-02-13T10:52:59.727206+00:00 app[api]: Release v19 created by 
  2022-02-13T10:52:59.727206+00:00 app[api]: Deploy 75f96c3c by 
  2022-02-13T10:53:10.000000+00:00 app[api]: Build succeeded
  </code></pre>