Django on Heroku: error=H10, no module named Django - django

From the last 2 hours I am trying to deploy my Django project on Heroku.
I have read solution to all similar problems but I am still seeing the following error on doing heroku logs:
ImportError: No module named 'django'
2016-11-29T18:26:33.959843+00:00 app[web.1]: [2016-11-29 18:26:33 +0000] [4] [INFO] Reason: Worker failed to boot.
2016-11-29T18:26:34.092546+00:00 heroku[web.1]: State changed from starting to crashed
2016-11-29T18:26:34.083366+00:00 heroku[web.1]: Process exited with status 3
2016-11-29T18:26:37.057428+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=intense-thicket- 88077.herokuapp.com request_id=6ec39e42-b2b4-486d-8211-7b6ed096eb67 fwd="202.142.70.146" dyno= connect= service= status=503 bytes=
2016-11-29T18:28:10.720588+00:00 heroku[run.5806]: Awaiting client
2016-11-29T18:28:10.680678+00:00 heroku[run.5806]: State changed from starting to up
2016-11-29T18:28:40.724034+00:00 heroku[run.5806]: Error R13 (Attach error) -> Failed to attach to process
2016-11-29T18:28:40.728213+00:00 heroku[run.5806]: Process exited with status 128
2016-11-29T18:28:40.741231+00:00 heroku[run.5806]: State changed from up to complete
2016-11-29T18:31:26.538645+00:00 heroku[run.4330]: Awaiting client
2016-11-29T18:31:26.740288+00:00 heroku[run.4330]: State changed from starting to up
2016-11-29T18:31:56.547335+00:00 heroku[run.4330]: Error R13 (Attach error) -> Failed to attach to process
2016-11-29T18:31:56.547335+00:00 heroku[run.4330]: Process exited with status 128
2016-11-29T18:31:56.572416+00:00 heroku[run.4330]: State changed from up to complete
2016-11-29T18:43:50.795965+00:00 heroku[web.1]: State changed from crashed to starting
2016-11-29T18:43:54.458675+00:00 heroku[web.1]: Starting process with command `gunicorn sachin_test_app.wsgi --log-file -`
2016-11-29T18:43:56.697645+00:00 app[web.1]: [2016-11-29 18:43:56 +0000] [4] [INFO] Starting gunicorn 19.6.0
2016-11-29T18:43:56.698106+00:00 app[web.1]: [2016-11-29 18:43:56 +0000] [4] [INFO] Listening at: http://0.0.0.0:13028 (4)
2016-11-29T18:43:56.698211+00:00 app[web.1]: [2016-11-29 18:43:56 +0000] [4] [INFO] Using worker: sync
2016-11-29T18:43:56.701032+00:00 app[web.1]: [2016-11-29 18:43:56 +0000] [8] [INFO] Booting worker with pid: 8
2016-11-29T18:43:56.705615+00:00 app[web.1]: [2016-11-29 18:43:56 +0000] [8] [ERROR] Exception in worker process
2016-11-29T18:43:56.705617+00:00 app[web.1]: Traceback (most recent call last):
2016-11-29T18:43:56.705617+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/arbiter.py", line 557, in spawn_worker
2016-11-29T18:43:56.705618+00:00 app[web.1]: worker.init_process()
2016-11-29T18:43:56.705619+00:00 app[web.1]: self.load_wsgi()
2016-11-29T18:43:56.705618+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/workers/base.py", line 126, in init_process
2016-11-29T18:43:56.705620+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2016-11-29T18:43:56.705619+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/workers/base.py", line 136, in load_wsgi
2016-11-29T18:43:56.705621+00:00 app[web.1]: self.callable = self.load()
2016-11-29T18:43:56.705620+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/app/base.py", line 67, in wsgi
2016-11-29T18:43:56.705621+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
2016-11-29T18:43:56.705622+00:00 app[web.1]: return self.load_wsgiapp()
2016-11-29T18:43:56.705622+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
2016-11-29T18:43:56.705623+00:00 app[web.1]: return util.import_app(self.app_uri)
2016-11-29T18:43:56.705623+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/util.py", line 357, in import_app
2016-11-29T18:43:56.705623+00:00 app[web.1]: __import__(module)
2016-11-29T18:43:56.705624+00:00 app[web.1]: File "/app/sachin_test_app/wsgi.py", line 12, in <module>
2016-11-29T18:43:56.705624+00:00 app[web.1]: from django.core.wsgi import get_wsgi_application
2016-11-29T18:43:56.705627+00:00 app[web.1]: ImportError: No module named 'django'
2016-11-29T18:43:56.705740+00:00 app[web.1]: [2016-11-29 18:43:56 +0000] [8] [INFO] Worker exiting (pid: 8)
2016-11-29T18:43:56.735713+00:00 app[web.1]: [2016-11-29 18:43:56 +0000] [4] [INFO] Shutting down: Master
2016-11-29T18:43:56.735790+00:00 app[web.1]: [2016-11-29 18:43:56 +0000] [4] [INFO] Reason: Worker failed to boot.
2016-11-29T18:43:56.817166+00:00 heroku[web.1]: State changed from starting to crashed
2016-11-29T18:43:56.806130+00:00 heroku[web.1]: Process exited with status 3
2016-11-29T19:04:59.722404+00:00 heroku[web.1]: State changed from crashed to starting
2016-11-29T19:05:04.117947+00:00 heroku[web.1]: Starting process with command `gunicorn sachin_test_app.wsgi --log-file -`
2016-11-29T19:05:07.043998+00:00 app[web.1]: [2016-11-29 19:05:07 +0000] [4] [INFO] Starting gunicorn 19.6.0
2016-11-29T19:05:07.051783+00:00 app[web.1]: [2016-11-29 19:05:07 +0000] [4] [INFO] Listening at: http://0.0.0.0:50515 (4)
2016-11-29T19:05:07.051974+00:00 app[web.1]: [2016-11-29 19:05:07 +0000] [4] [INFO] Using worker: sync
2016-11-29T19:05:07.067007+00:00 app[web.1]: [2016-11-29 19:05:07 +0000] [8] [INFO] Booting worker with pid: 8
2016-11-29T19:05:07.085655+00:00 app[web.1]: [2016-11-29 19:05:07 +0000] [9] [INFO] Booting worker with pid: 9
2016-11-29T19:05:07.096115+00:00 app[web.1]: [2016-11-29 19:05:07 +0000] [9] [ERROR] Exception in worker process
2016-11-29T19:05:07.096118+00:00 app[web.1]: Traceback (most recent call last):
2016-11-29T19:05:07.096119+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/arbiter.py", line 557, in spawn_worker
2016-11-29T19:05:07.096120+00:00 app[web.1]: worker.init_process()
2016-11-29T19:05:07.096121+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/workers/base.py", line 126, in init_process
2016-11-29T19:05:07.096122+00:00 app[web.1]: self.load_wsgi()
2016-11-29T19:05:07.096122+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/workers/base.py", line 136, in load_wsgi
2016-11-29T19:05:07.096123+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2016-11-29T19:05:07.096124+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/app/base.py", line 67, in wsgi
2016-11-29T19:05:07.096125+00:00 app[web.1]: self.callable = self.load()
2016-11-29T19:05:07.096125+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
2016-11-29T19:05:07.096126+00:00 app[web.1]: return self.load_wsgiapp()
2016-11-29T19:05:07.096127+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
2016-11-29T19:05:07.096127+00:00 app[web.1]: return util.import_app(self.app_uri)
2016-11-29T19:05:07.096128+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/util.py", line 357, in import_app
2016-11-29T19:05:07.096129+00:00 app[web.1]: __import__(module)
2016-11-29T19:05:07.096130+00:00 app[web.1]: File "/app/sachin_test_app/wsgi.py", line 12, in <module>
2016-11-29T19:05:07.096130+00:00 app[web.1]: from django.core.wsgi import get_wsgi_application
2016-11-29T19:05:07.096131+00:00 app[web.1]: ImportError: No module named 'django'
2016-11-29T19:05:07.096294+00:00 app[web.1]: [2016-11-29 19:05:07 +0000] [9] [INFO] Worker exiting (pid: 9)
2016-11-29T19:05:07.117308+00:00 app[web.1]: [2016-11-29 19:05:07 +0000] [8] [ERROR] Exception in worker process
2016-11-29T19:05:07.117311+00:00 app[web.1]: Traceback (most recent call last):
2016-11-29T19:05:07.117314+00:00 app[web.1]: self.load_wsgi()
2016-11-29T19:05:07.117313+00:00 app[web.1]: worker.init_process()
2016-11-29T19:05:07.117315+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/workers/base.py", line 136, in load_wsgi
2016-11-29T19:05:07.117317+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/app/base.py", line 67, in wsgi
2016-11-29T19:05:07.117314+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/workers/base.py", line 126, in init_process
2016-11-29T19:05:07.117317+00:00 app[web.1]: self.callable = self.load()
2016-11-29T19:05:07.117316+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2016-11-29T19:05:07.117312+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/arbiter.py", line 557, in spawn_worker
2016-11-29T19:05:07.117318+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
2016-11-29T19:05:07.117318+00:00 app[web.1]: return self.load_wsgiapp()
2016-11-29T19:05:07.117319+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
2016-11-29T19:05:07.117320+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/gunicorn/util.py", line 357, in import_app
2016-11-29T19:05:07.117320+00:00 app[web.1]: return util.import_app(self.app_uri)
2016-11-29T19:05:07.117322+00:00 app[web.1]: from django.core.wsgi import get_wsgi_application
2016-11-29T19:05:07.117321+00:00 app[web.1]: __import__(module)
2016-11-29T19:05:07.117322+00:00 app[web.1]: File "/app/sachin_test_app/wsgi.py", line 12, in <module>
2016-11-29T19:05:07.117327+00:00 app[web.1]: ImportError: No module named 'django'
2016-11-29T19:05:07.136615+00:00 app[web.1]: [2016-11-29 19:05:07 +0000] [8] [INFO] Worker exiting (pid: 8)
2016-11-29T19:05:07.250037+00:00 app[web.1]: [2016-11-29 19:05:07 +0000] [4] [INFO] Shutting down: Master
2016-11-29T19:05:07.250163+00:00 app[web.1]: [2016-11-29 19:05:07 +0000] [4] [INFO] Reason: Worker failed to boot.
2016-11-29T19:05:07.586626+00:00 heroku[web.1]: State changed from starting to crashed
2016-11-29T19:05:07.569952+00:00 heroku[web.1]: Process exited with status 3
2016-11-29T19:19:25.003934+00:00 heroku[run.2944]: Awaiting client
2016-11-29T19:19:25.218914+00:00 heroku[run.2944]: State changed from starting to up
2016-11-29T19:19:55.012005+00:00 heroku[run.2944]: State changed from up to complete
2016-11-29T19:19:55.008626+00:00 heroku[run.2944]: Error R13 (Attach error) -> Failed to attach to process
2016-11-29T19:19:55.011515+00:00 heroku[run.2944]: Process exited with status 128
2016-11-29T19:21:44.348806+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=intense-thicket-88077.herokuapp.com request_id=fc07cdbd-fd4c-436d-8305-0859b68eccf1 fwd="202.142.70.146" dyno= connect= service= status=503 bytes=
This is the first time am deploying a Django app on Heroku. What should I do?
I have tried scaling the dyno again.
heroku pip install gunicorn
returns:
ETIMEDOUT: connect ETIMEDOUT 50.19.103.36:5000
Please help! Thanks!

this was stupid...my bad!
I did not include django in reqirements.txt
django==1.9.2
that's it :)

Related

heroku app successfully deployed but showing application error

heroku logs --tail --app fooodie-bot2021
ยป Warning: heroku update available from 7.53.0 to 7.54.0.
2021-06-04T18:44:13.667090+00:00 heroku[web.1]: Starting process with command `gunicorn --bind 0.0.0.0:58344 app:app`
2021-06-04T18:44:17.360140+00:00 app[web.1]: [2021-06-04 18:44:17 +0000] [4] [INFO] Starting gunicorn 20.1.0
2021-06-04T18:44:17.360928+00:00 app[web.1]: [2021-06-04 18:44:17 +0000] [4] [INFO] Listening at: http://0.0.0.0:58344 (4)
2021-06-04T18:44:17.361067+00:00 app[web.1]: [2021-06-04 18:44:17 +0000] [4] [INFO] Using worker: sync
2021-06-04T18:44:17.367156+00:00 app[web.1]: [2021-06-04 18:44:17 +0000] [7] [INFO] Booting worker with pid: 7
2021-06-04T18:44:17.375131+00:00 app[web.1]: [2021-06-04 18:44:17 +0000] [7] [ERROR] Exception in worker process
2021-06-04T18:44:17.375145+00:00 app[web.1]: Traceback (most recent call last):
2021-06-04T18:44:17.375147+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
2021-06-04T18:44:17.375148+00:00 app[web.1]: worker.init_process()
2021-06-04T18:44:17.375149+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 134, in init_process
2021-06-04T18:44:17.375149+00:00 app[web.1]: self.load_wsgi()
2021-06-04T18:44:17.375149+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2021-06-04T18:44:17.375150+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-06-04T18:44:17.375151+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-06-04T18:44:17.375152+00:00 app[web.1]: self.callable = self.load()
2021-06-04T18:44:17.375152+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2021-06-04T18:44:17.375152+00:00 app[web.1]: return self.load_wsgiapp()
2021-06-04T18:44:17.375153+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2021-06-04T18:44:17.375153+00:00 app[web.1]: return util.import_app(self.app_uri)
2021-06-04T18:44:17.375154+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py", line 359, in import_app
2021-06-04T18:44:17.375154+00:00 app[web.1]: mod = importlib.import_module(module)
2021-06-04T18:44:17.375154+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/__init__.py", line 127, in import_module
2021-06-04T18:44:17.375155+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-06-04T18:44:17.375155+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
2021-06-04T18:44:17.375156+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
2021-06-04T18:44:17.375156+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
2021-06-04T18:44:17.375156+00:00 app[web.1]: ModuleNotFoundError: No module named 'app'
2021-06-04T18:44:17.375384+00:00 app[web.1]: [2021-06-04 18:44:17 +0000] [7] [INFO] Worker exiting (pid: 7)
2021-06-04T18:44:17.435219+00:00 app[web.1]: [2021-06-04 18:44:17 +0000] [4] [INFO] Shutting down: Master
2021-06-04T18:44:17.435220+00:00 app[web.1]: [2021-06-04 18:44:17 +0000] [4] [INFO] Reason: Worker failed to boot.
2021-06-04T18:44:17.529984+00:00 heroku[web.1]: Process exited with status 3
2021-06-04T18:44:17.603954+00:00 heroku[web.1]: State changed from starting to crashed
2021-06-04T20:52:46.691043+00:00 heroku[web.1]: State changed from crashed to starting
2021-06-04T20:52:53.880135+00:00 heroku[web.1]: Starting process with command `gunicorn --bind 0.0.0.0:32290 app:app`
2021-06-04T20:52:57.015064+00:00 app[web.1]: [2021-06-04 20:52:57 +0000] [4] [INFO] Starting gunicorn 20.1.0
2021-06-04T20:52:57.015457+00:00 app[web.1]: [2021-06-04 20:52:57 +0000] [4] [INFO] Listening at: http://0.0.0.0:32290 (4)
2021-06-04T20:52:57.015537+00:00 app[web.1]: [2021-06-04 20:52:57 +0000] [4] [INFO] Using worker: sync
2021-06-04T20:52:57.019297+00:00 app[web.1]: [2021-06-04 20:52:57 +0000] [7] [INFO] Booting worker with pid: 7
2021-06-04T20:52:57.025214+00:00 app[web.1]: [2021-06-04 20:52:57 +0000] [7] [ERROR] Exception in worker process
2021-06-04T20:52:57.025215+00:00 app[web.1]: Traceback (most recent call last):
2021-06-04T20:52:57.025216+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
2021-06-04T20:52:57.025216+00:00 app[web.1]: worker.init_process()
2021-06-04T20:52:57.025217+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 134, in init_process
2021-06-04T20:52:57.025217+00:00 app[web.1]: self.load_wsgi()
2021-06-04T20:52:57.025217+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2021-06-04T20:52:57.025218+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-06-04T20:52:57.025218+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-06-04T20:52:57.025219+00:00 app[web.1]: self.callable = self.load()
2021-06-04T20:52:57.025219+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2021-06-04T20:52:57.025219+00:00 app[web.1]: return self.load_wsgiapp()
2021-06-04T20:52:57.025220+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2021-06-04T20:52:57.025220+00:00 app[web.1]: return util.import_app(self.app_uri)
2021-06-04T20:52:57.025220+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py", line 359, in import_app
2021-06-04T20:52:57.025221+00:00 app[web.1]: mod = importlib.import_module(module)
2021-06-04T20:52:57.025221+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/__init__.py", line 127, in import_module
2021-06-04T20:52:57.025222+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-06-04T20:52:57.025222+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
2021-06-04T20:52:57.025222+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
2021-06-04T20:52:57.025223+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
2021-06-04T20:52:57.025223+00:00 app[web.1]: ModuleNotFoundError: No module named 'app'
2021-06-04T20:52:57.025357+00:00 app[web.1]: [2021-06-04 20:52:57 +0000] [7] [INFO] Worker exiting (pid: 7)
2021-06-04T20:52:57.060273+00:00 app[web.1]: [2021-06-04 20:52:57 +0000] [4] [INFO] Shutting down: Master
2021-06-04T20:52:57.060339+00:00 app[web.1]: [2021-06-04 20:52:57 +0000] [4] [INFO] Reason: Worker failed to boot.
2021-06-04T20:52:57.136841+00:00 heroku[web.1]: Process exited with status 3
2021-06-04T20:52:57.214462+00:00 heroku[web.1]: State changed from starting to crashed
2021-06-04T23:56:33.244581+00:00 heroku[web.1]: State changed from crashed to starting
2021-06-04T23:56:41.153062+00:00 heroku[web.1]: Starting process with command `gunicorn --bind 0.0.0.0:44202 app:app`
2021-06-04T23:56:45.069131+00:00 app[web.1]: [2021-06-04 23:56:45 +0000] [4] [INFO] Starting gunicorn 20.1.0
2021-06-04T23:56:45.069673+00:00 app[web.1]: [2021-06-04 23:56:45 +0000] [4] [INFO] Listening at: http://0.0.0.0:44202 (4)
2021-06-04T23:56:45.069777+00:00 app[web.1]: [2021-06-04 23:56:45 +0000] [4] [INFO] Using worker: sync
2021-06-04T23:56:45.073690+00:00 app[web.1]: [2021-06-04 23:56:45 +0000] [7] [INFO] Booting worker with pid: 7
2021-06-04T23:56:45.078553+00:00 app[web.1]: [2021-06-04 23:56:45 +0000] [7] [ERROR] Exception in worker process
2021-06-04T23:56:45.078582+00:00 app[web.1]: Traceback (most recent call last):
2021-06-04T23:56:45.078588+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
2021-06-04T23:56:45.078594+00:00 app[web.1]: worker.init_process()
2021-06-04T23:56:45.078594+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 134, in init_process
2021-06-04T23:56:45.078595+00:00 app[web.1]: self.load_wsgi()
2021-06-04T23:56:45.078595+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2021-06-04T23:56:45.078595+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-06-04T23:56:45.078600+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-06-04T23:56:45.078601+00:00 app[web.1]: self.callable = self.load()
2021-06-04T23:56:45.078601+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2021-06-04T23:56:45.078601+00:00 app[web.1]: return self.load_wsgiapp()
2021-06-04T23:56:45.078602+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2021-06-04T23:56:45.078602+00:00 app[web.1]: return util.import_app(self.app_uri)
2021-06-04T23:56:45.078602+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py", line 359, in import_app
2021-06-04T23:56:45.078603+00:00 app[web.1]: mod = importlib.import_module(module)
2021-06-04T23:56:45.078603+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/__init__.py", line 127, in import_module
2021-06-04T23:56:45.078604+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-06-04T23:56:45.078604+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
2021-06-04T23:56:45.078605+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
2021-06-04T23:56:45.078605+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
2021-06-04T23:56:45.078605+00:00 app[web.1]: ModuleNotFoundError: No module named 'app'
2021-06-04T23:56:45.078700+00:00 app[web.1]: [2021-06-04 23:56:45 +0000] [7] [INFO] Worker exiting (pid: 7)
2021-06-04T23:56:45.117467+00:00 app[web.1]: [2021-06-04 23:56:45 +0000] [4] [INFO] Shutting down: Master
2021-06-04T23:56:45.117651+00:00 app[web.1]: [2021-06-04 23:56:45 +0000] [4] [INFO] Reason: Worker failed to boot.
2021-06-04T23:56:45.231963+00:00 heroku[web.1]: Process exited with status 3
2021-06-04T23:56:45.388008+00:00 heroku[web.1]: State changed from starting to crashed
2021-06-05T03:47:07.088448+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=fooodie-bot2021.herokuapp.com request_id=aa2aa16a-bb5f-44d6-a6ea-4083e463693f fwd="42.106.107.86" dyno= connect= service= status=503 bytes= protocol=https
2021-06-05T03:47:07.663226+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=fooodie-bot2021.herokuapp.com request_id=4e065a27-291a-4498-b690-f70f0df250cc fwd="42.106.107.86" dyno= connect= service= status=503 bytes= protocol=https
Error says there is no module named app, please check if your python file is named app and has Flask instance equal to app.

ModuleNotFoundError: No module named 'mysite.wsgi' error comes up during deployment

I was making a Django web app using pipenv, the Application error window pops up whenever i try running 'heroku open', please help i am stuck in deploying this for over one month and have tried almost every possible solution that was available online but the error still persists. please help.
Running'heroku logs --tail' shows:
$ heroku logs --tail
2021-02-17T17:50:51.188410+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2021-02-17T17:50:51.297606+00:00 heroku[web.1]: Process exited with status 1
2021-02-17T17:50:51.389796+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-17T17:50:53.000000+00:00 app[api]: Build succeeded
2021-02-17T17:51:39.619675+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bloggero.herokuapp.com request_id=ecbd78a2-5542-4d08-87f7-e7d12404ae9b fwd="223.239.61.176" dyno= connect= service= status=503 bytes= protocol=https
2021-02-17T17:51:41.855171+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bloggero.herokuapp.com request_id=42dd37d3-ad4b-43dc-956d-41d34bf03ffd fwd="223.239.61.176" dyno= connect= service= status=503 bytes= protocol=https
2021-02-17T18:04:58.000000+00:00 app[api]: Build started by user ad******#gmail.com
2021-02-17T18:05:29.716771+00:00 app[api]: Deploy 879be0de by user a******#gmail.com
2021-02-17T18:05:29.716771+00:00 app[api]: Release v19 created by user a*******#gmail.com
2021-02-17T18:05:30.074089+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-17T18:05:35.396728+00:00 heroku[web.1]: Starting process with command `gunicorn mysite.wsgi`
2021-02-17T18:05:37.756029+00:00 app[web.1]: [2021-02-17 18:05:37 +0000] [4] [INFO] Starting gunicorn 20.0.4
2021-02-17T18:05:37.756584+00:00 app[web.1]: [2021-02-17 18:05:37 +0000] [4] [INFO] Listening at: http://0.0.0.0:17786 (4)
2021-02-17T18:05:37.756675+00:00 app[web.1]: [2021-02-17 18:05:37 +0000] [4] [INFO] Using worker: sync
2021-02-17T18:05:37.761624+00:00 app[web.1]: [2021-02-17 18:05:37 +0000] [9] [INFO] Booting worker with pid: 9
2021-02-17T18:05:37.770211+00:00 app[web.1]: [2021-02-17 18:05:37 +0000] [9] [ERROR] Exception in worker process
2021-02-17T18:05:37.770213+00:00 app[web.1]: Traceback (most recent call last):
2021-02-17T18:05:37.770232+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2021-02-17T18:05:37.770233+00:00 app[web.1]: worker.init_process()
2021-02-17T18:05:37.770234+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
2021-02-17T18:05:37.770234+00:00 app[web.1]: self.load_wsgi()
2021-02-17T18:05:37.770234+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2021-02-17T18:05:37.770235+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-02-17T18:05:37.770235+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-02-17T18:05:37.770236+00:00 app[web.1]: self.callable = self.load()
2021-02-17T18:05:37.770236+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2021-02-17T18:05:37.770236+00:00 app[web.1]: return self.load_wsgiapp()
2021-02-17T18:05:37.770237+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2021-02-17T18:05:37.770237+00:00 app[web.1]: return util.import_app(self.app_uri)
2021-02-17T18:05:37.770238+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
2021-02-17T18:05:37.770238+00:00 app[web.1]: mod = importlib.import_module(module)
2021-02-17T18:05:37.770238+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/importlib/__init__.py", line 127, in import_module
2021-02-17T18:05:37.770239+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-02-17T18:05:37.770239+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
2021-02-17T18:05:37.770240+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 983, in _find_and_load
2021-02-17T18:05:37.770240+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
2021-02-17T18:05:37.770240+00:00 app[web.1]: ModuleNotFoundError: No module named 'mysite.wsgi'
2021-02-17T18:05:37.770465+00:00 app[web.1]: [2021-02-17 18:05:37 +0000] [9] [INFO] Worker exiting (pid: 9)
2021-02-17T18:05:37.779801+00:00 app[web.1]: [2021-02-17 18:05:37 +0000] [10] [INFO] Booting worker with pid: 10
2021-02-17T18:05:37.785931+00:00 app[web.1]: [2021-02-17 18:05:37 +0000] [10] [ERROR] Exception in worker process
2021-02-17T18:05:37.785933+00:00 app[web.1]: Traceback (most recent call last):
2021-02-17T18:05:37.785934+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2021-02-17T18:05:37.785934+00:00 app[web.1]: worker.init_process()
2021-02-17T18:05:37.785934+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
2021-02-17T18:05:37.785935+00:00 app[web.1]: self.load_wsgi()
2021-02-17T18:05:37.785935+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2021-02-17T18:05:37.785936+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-02-17T18:05:37.785937+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-02-17T18:05:37.785937+00:00 app[web.1]: self.callable = self.load()
2021-02-17T18:05:37.785937+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2021-02-17T18:05:37.785938+00:00 app[web.1]: return self.load_wsgiapp()
2021-02-17T18:05:37.785938+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2021-02-17T18:05:37.785939+00:00 app[web.1]: return util.import_app(self.app_uri)
2021-02-17T18:05:37.785939+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
2021-02-17T18:05:37.785939+00:00 app[web.1]: mod = importlib.import_module(module)
2021-02-17T18:05:37.785940+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/importlib/__init__.py", line 127, in import_module
2021-02-17T18:05:37.785940+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-02-17T18:05:37.785941+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
2021-02-17T18:05:37.785941+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 983, in _find_and_load
2021-02-17T18:05:37.785941+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
2021-02-17T18:05:37.785942+00:00 app[web.1]: ModuleNotFoundError: No module named 'mysite.wsgi'
2021-02-17T18:05:37.786104+00:00 app[web.1]: [2021-02-17 18:05:37 +0000] [10] [INFO] Worker exiting (pid: 10)
2021-02-17T18:05:37.906870+00:00 app[web.1]: [2021-02-17 18:05:37 +0000] [4] [INFO] Shutting down: Master
2021-02-17T18:05:37.906946+00:00 app[web.1]: [2021-02-17 18:05:37 +0000] [4] [INFO] Reason: Worker failed to boot.
2021-02-17T18:05:37.987061+00:00 heroku[web.1]: Process exited with status 3
2021-02-17T18:05:38.059333+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-17T18:05:38.062623+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-17T18:05:41.000000+00:00 app[api]: Build succeeded
2021-02-17T18:05:48.981104+00:00 heroku[web.1]: Starting process with command `gunicorn mysite.wsgi`
2021-02-17T18:05:52.073363+00:00 app[web.1]: [2021-02-17 18:05:52 +0000] [4] [INFO] Starting gunicorn 20.0.4
2021-02-17T18:05:52.074407+00:00 app[web.1]: [2021-02-17 18:05:52 +0000] [4] [INFO] Listening at: http://0.0.0.0:45799 (4)
2021-02-17T18:05:52.074661+00:00 app[web.1]: [2021-02-17 18:05:52 +0000] [4] [INFO] Using worker: sync
2021-02-17T18:05:52.082772+00:00 app[web.1]: [2021-02-17 18:05:52 +0000] [9] [INFO] Booting worker with pid: 9
2021-02-17T18:05:52.096292+00:00 app[web.1]: [2021-02-17 18:05:52 +0000] [9] [ERROR] Exception in worker process
2021-02-17T18:05:52.096293+00:00 app[web.1]: Traceback (most recent call last):
2021-02-17T18:05:52.096302+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2021-02-17T18:05:52.096303+00:00 app[web.1]: worker.init_process()
2021-02-17T18:05:52.096303+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
2021-02-17T18:05:52.096303+00:00 app[web.1]: self.load_wsgi()
2021-02-17T18:05:52.096304+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2021-02-17T18:05:52.096304+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-02-17T18:05:52.096304+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-02-17T18:05:52.096305+00:00 app[web.1]: self.callable = self.load()
2021-02-17T18:05:52.096305+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2021-02-17T18:05:52.096306+00:00 app[web.1]: return self.load_wsgiapp()
2021-02-17T18:05:52.096306+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2021-02-17T18:05:52.096306+00:00 app[web.1]: return util.import_app(self.app_uri)
2021-02-17T18:05:52.096307+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
2021-02-17T18:05:52.096307+00:00 app[web.1]: mod = importlib.import_module(module)
2021-02-17T18:05:52.096307+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/importlib/__init__.py", line 127, in import_module
2021-02-17T18:05:52.096308+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-02-17T18:05:52.096308+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
2021-02-17T18:05:52.096309+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 983, in _find_and_load
2021-02-17T18:05:52.096309+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
2021-02-17T18:05:52.096310+00:00 app[web.1]: ModuleNotFoundError: No module named 'mysite.wsgi'
2021-02-17T18:05:52.096657+00:00 app[web.1]: [2021-02-17 18:05:52 +0000] [9] [INFO] Worker exiting (pid: 9)
2021-02-17T18:05:52.131656+00:00 app[web.1]: [2021-02-17 18:05:52 +0000] [4] [INFO] Shutting down: Master
2021-02-17T18:05:52.131783+00:00 app[web.1]: [2021-02-17 18:05:52 +0000] [4] [INFO] Reason: Worker failed to boot.
2021-02-17T18:05:52.238783+00:00 heroku[web.1]: Process exited with status 3
2021-02-17T18:05:52.335630+00:00 heroku[web.1]: State changed from starting to crashed
I checked the Procfile and it looks :
web: gunicorn mysite.wsgi
And here is the wsgi.py module:
from helloworld.wsgi import HelloWorldApplication
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')
application = get_wsgi_application()
application = HelloWorldApplication(application)
The project structure is as follows-
And i have already installed gunicorn and other requirements which can be seen here in the pipfile:-
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
asgiref = "==3.2.10"
django-crispy-forms = "==1.10.0"
pytz = "==2020.4"
sqlparse = "==0.4.1"
Django = "==3.1"
Pillow = "==8.0.1"
gunicorn = "*"
[requires]
python_version = "3.7"
From a quick google search I found another thread with a similar question. The answers seem to indicate that you need to add your project directory in your python path.
First, import the sys module.
import sys
Now, right before the os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings') line, add:
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if path not in sys.path:
sys.path.append(path)
This code snippet grabs the absolute path to your project directory and appends it to your python path if it is not already there.
Also, I second Field Boy's response that you should consider a linux server.
Please don't waste your time with heroku, you will always run into problems, even after your app started fine, if your app is fairly large. Use a virtual machine (check digital ocean or linode they have free $100 credit) and your app will run just like on your laptop. Look for Corey Schafer Django deployment on linux server on youtube on how to set up Apache2 virtual server on the linux server.

Application error - When I uploading my Django app on Heroku

Uploading my Django app on Heroku
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail
heroku logs:
$ heroku logs -n 150
(node:19036) SyntaxError Plugin: heroku: C:\Users\Meteor\AppData\Local\heroku\version: Unexpected token in JSON at position 0
module: #oclif/config#1.13.2
task: runHook init
plugin: heroku
root: C:\Program Files\heroku\client
See more details with DEBUG=*
(node:19036) SyntaxError Plugin: heroku: C:\Users\Meteor\AppData\Local\heroku\config.json: Unexpected token in JSON at position 0
module: #oclif/config#1.13.2
task: runHook prerun
plugin: heroku
root: C:\Program Files\heroku\client
See more details with DEBUG=*
2020-11-05T15:09:42.984311+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-11-05T15:09:42.984311+00:00 app[web.1]: self.callable = self.load()
2020-11-05T15:09:42.984312+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
2020-11-05T15:09:42.984312+00:00 app[web.1]: return self.load_wsgiapp()
2020-11-05T15:09:42.984312+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
2020-11-05T15:09:42.984313+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-11-05T15:09:42.984313+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/util.py", line 350, in import_app
2020-11-05T15:09:42.984314+00:00 app[web.1]: __import__(module)
2020-11-05T15:09:42.984314+00:00 app[web.1]: File "/app/newspaper_project/wsgi.py", line 12, in <module>
2020-11-05T15:09:42.984315+00:00 app[web.1]: from django.core.wsgi import get_wsgi_application
2020-11-05T15:09:42.984315+00:00 app[web.1]: ModuleNotFoundError: No module named 'django'
2020-11-05T15:09:42.984555+00:00 app[web.1]: [2020-11-05 15:09:42 +0000] [9] [INFO] Worker exiting (pid: 9)
2020-11-05T15:09:42.992599+00:00 app[web.1]: [2020-11-05 15:09:42 +0000] [10] [INFO] Booting worker with pid: 10
2020-11-05T15:09:43.000000+00:00 app[api]: Build succeeded
2020-11-05T15:09:43.001925+00:00 app[web.1]: [2020-11-05 15:09:42 +0000] [10] [ERROR] Exception in worker process
2020-11-05T15:09:43.001929+00:00 app[web.1]: Traceback (most recent call last):
2020-11-05T15:09:43.001929+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-11-05T15:09:43.001930+00:00 app[web.1]: worker.init_process()
2020-11-05T15:09:43.001931+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/workers/base.py", line 129, in init_process
2020-11-05T15:09:43.001931+00:00 app[web.1]: self.load_wsgi()
2020-11-05T15:09:43.001932+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
2020-11-05T15:09:43.001932+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-11-05T15:09:43.001933+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-11-05T15:09:43.001933+00:00 app[web.1]: self.callable = self.load()
2020-11-05T15:09:43.001934+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
2020-11-05T15:09:43.001934+00:00 app[web.1]: return self.load_wsgiapp()
2020-11-05T15:09:43.001935+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
2020-11-05T15:09:43.001935+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-11-05T15:09:43.001936+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/util.py", line 350, in import_app
2020-11-05T15:09:43.001936+00:00 app[web.1]: __import__(module)
2020-11-05T15:09:43.001936+00:00 app[web.1]: File "/app/newspaper_project/wsgi.py", line 12, in <module>
2020-11-05T15:09:43.001937+00:00 app[web.1]: from django.core.wsgi import get_wsgi_application
2020-11-05T15:09:43.001937+00:00 app[web.1]: ModuleNotFoundError: No module named 'django'
2020-11-05T15:09:43.002169+00:00 app[web.1]: [2020-11-05 15:09:43 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-11-05T15:09:43.149710+00:00 app[web.1]: [2020-11-05 15:09:43 +0000] [4] [INFO] Shutting down: Master
2020-11-05T15:09:43.149823+00:00 app[web.1]: [2020-11-05 15:09:43 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-11-05T15:09:43.250459+00:00 heroku[web.1]: Process exited with status 3
2020-11-05T15:09:43.303365+00:00 heroku[web.1]: State changed from starting to crashed
2020-11-05T15:09:43.306915+00:00 heroku[web.1]: State changed from crashed to starting
2020-11-05T15:09:49.074113+00:00 heroku[web.1]: Starting process with command `gunicorn newspaper_project.wsgi`
2020-11-05T15:09:51.509525+00:00 app[web.1]: [2020-11-05 15:09:51 +0000] [4] [INFO] Starting gunicorn 19.9.0
2020-11-05T15:09:51.510059+00:00 app[web.1]: [2020-11-05 15:09:51 +0000] [4] [INFO] Listening at: http://0.0.0.0:24987 (4)
2020-11-05T15:09:51.510167+00:00 app[web.1]: [2020-11-05 15:09:51 +0000] [4] [INFO] Using worker: sync
2020-11-05T15:09:51.511620+00:00 app[web.1]: /app/.heroku/python/lib/python3.8/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
2020-11-05T15:09:51.511621+00:00 app[web.1]: return io.open(fd, *args, **kwargs)
2020-11-05T15:09:51.515120+00:00 app[web.1]: [2020-11-05 15:09:51 +0000] [9] [INFO] Booting worker with pid: 9
2020-11-05T15:09:51.524599+00:00 app[web.1]: [2020-11-05 15:09:51 +0000] [9] [ERROR] Exception in worker process
2020-11-05T15:09:51.524600+00:00 app[web.1]: Traceback (most recent call last):
2020-11-05T15:09:51.524601+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-11-05T15:09:51.524601+00:00 app[web.1]: worker.init_process()
2020-11-05T15:09:51.524602+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/workers/base.py", line 129, in init_process
2020-11-05T15:09:51.524602+00:00 app[web.1]: self.load_wsgi()
2020-11-05T15:09:51.524603+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
2020-11-05T15:09:51.524603+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-11-05T15:09:51.524604+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-11-05T15:09:51.524604+00:00 app[web.1]: self.callable = self.load()
2020-11-05T15:09:51.524605+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
2020-11-05T15:09:51.524605+00:00 app[web.1]: return self.load_wsgiapp()
2020-11-05T15:09:51.524605+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
2020-11-05T15:09:51.524606+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-11-05T15:09:51.524606+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/util.py", line 350, in import_app
2020-11-05T15:09:51.524607+00:00 app[web.1]: __import__(module)
2020-11-05T15:09:51.524607+00:00 app[web.1]: File "/app/newspaper_project/wsgi.py", line 12, in <module>
2020-11-05T15:09:51.524608+00:00 app[web.1]: from django.core.wsgi import get_wsgi_application
2020-11-05T15:09:51.524608+00:00 app[web.1]: ModuleNotFoundError: No module named 'django'
2020-11-05T15:09:51.524784+00:00 app[web.1]: [2020-11-05 15:09:51 +0000] [9] [INFO] Worker exiting (pid: 9)
2020-11-05T15:09:51.530248+00:00 app[web.1]: [2020-11-05 15:09:51 +0000] [10] [INFO] Booting worker with pid: 10
2020-11-05T15:09:51.536468+00:00 app[web.1]: [2020-11-05 15:09:51 +0000] [10] [ERROR] Exception in worker process
2020-11-05T15:09:51.536470+00:00 app[web.1]: Traceback (most recent call last):
2020-11-05T15:09:51.536471+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-11-05T15:09:51.536471+00:00 app[web.1]: worker.init_process()
2020-11-05T15:09:51.536472+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/workers/base.py", line 129, in init_process
2020-11-05T15:09:51.536472+00:00 app[web.1]: self.load_wsgi()
2020-11-05T15:09:51.536472+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
2020-11-05T15:09:51.536473+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-11-05T15:09:51.536473+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-11-05T15:09:51.536474+00:00 app[web.1]: self.callable = self.load()
2020-11-05T15:09:51.536474+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
2020-11-05T15:09:51.536474+00:00 app[web.1]: return self.load_wsgiapp()
2020-11-05T15:09:51.536475+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
2020-11-05T15:09:51.536475+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-11-05T15:09:51.536476+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/util.py", line 350, in import_app
2020-11-05T15:09:51.536476+00:00 app[web.1]: __import__(module)
2020-11-05T15:09:51.536476+00:00 app[web.1]: File "/app/newspaper_project/wsgi.py", line 12, in <module>
2020-11-05T15:09:51.536477+00:00 app[web.1]: from django.core.wsgi import get_wsgi_application
2020-11-05T15:09:51.536477+00:00 app[web.1]: ModuleNotFoundError: No module named 'django'
2020-11-05T15:09:51.536590+00:00 app[web.1]: [2020-11-05 15:09:51 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-11-05T15:09:51.660520+00:00 app[web.1]: [2020-11-05 15:09:51 +0000] [4] [INFO] Shutting down: Master
2020-11-05T15:09:51.660654+00:00 app[web.1]: [2020-11-05 15:09:51 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-11-05T15:09:51.756274+00:00 heroku[web.1]: Process exited with status 3
2020-11-05T15:09:51.807711+00:00 heroku[web.1]: State changed from starting to crashed
2020-11-05T15:10:24.269598+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=newspaper-2020.herokuapp.com request_id=a22f6b28-a334-420a-ade1-6f8e75560879 fwd="37.200.249.220" dyno= connect= service= status=503 bytes= protocol=https
2020-11-05T15:10:25.689071+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=newspaper-2020.herokuapp.com request_id=bf4c18e7-5264-4f33-ae49-5357c96309ce fwd="37.200.249.220" dyno= connect= service= status=503 bytes= protocol=https
2020-11-05T15:34:51.096827+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=newspaper-2020.herokuapp.com request_id=e9eb3726-4dab-4a49-ae2b-20efa66ae8c6 fwd="37.200.249.220" dyno= connect= service= status=503 bytes= protocol=https
2020-11-05T15:34:52.078404+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=newspaper-2020.herokuapp.com request_id=148807ce-b410-4528-b799-86f3aa265fb0 fwd="37.200.249.220" dyno= connect= service= status=503 bytes= protocol=https
2020-11-05T15:39:03.883280+00:00 heroku[web.1]: State changed from crashed to starting
2020-11-05T15:39:09.428963+00:00 heroku[web.1]: Starting process with command `gunicorn newspaper_project.wsgi`
2020-11-05T15:39:11.237450+00:00 app[web.1]: [2020-11-05 15:39:11 +0000] [4] [INFO] Starting gunicorn 19.9.0
2020-11-05T15:39:11.238023+00:00 app[web.1]: [2020-11-05 15:39:11 +0000] [4] [INFO] Listening at: http://0.0.0.0:20576 (4)
2020-11-05T15:39:11.238148+00:00 app[web.1]: [2020-11-05 15:39:11 +0000] [4] [INFO] Using worker: sync
2020-11-05T15:39:11.239551+00:00 app[web.1]: /app/.heroku/python/lib/python3.8/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
2020-11-05T15:39:11.239552+00:00 app[web.1]: return io.open(fd, *args, **kwargs)
2020-11-05T15:39:11.242528+00:00 app[web.1]: [2020-11-05 15:39:11 +0000] [9] [INFO] Booting worker with pid: 9
2020-11-05T15:39:11.249559+00:00 app[web.1]: [2020-11-05 15:39:11 +0000] [9] [ERROR] Exception in worker process
2020-11-05T15:39:11.249561+00:00 app[web.1]: Traceback (most recent call last):
2020-11-05T15:39:11.249561+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-11-05T15:39:11.249561+00:00 app[web.1]: worker.init_process()
2020-11-05T15:39:11.249562+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/workers/base.py", line 129, in init_process
2020-11-05T15:39:11.249562+00:00 app[web.1]: self.load_wsgi()
2020-11-05T15:39:11.249562+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
2020-11-05T15:39:11.249562+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-11-05T15:39:11.249563+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-11-05T15:39:11.249563+00:00 app[web.1]: self.callable = self.load()
2020-11-05T15:39:11.249563+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
2020-11-05T15:39:11.249564+00:00 app[web.1]: return self.load_wsgiapp()
2020-11-05T15:39:11.249564+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
2020-11-05T15:39:11.249564+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-11-05T15:39:11.249564+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/util.py", line 350, in import_app
2020-11-05T15:39:11.249565+00:00 app[web.1]: __import__(module)
2020-11-05T15:39:11.249565+00:00 app[web.1]: File "/app/newspaper_project/wsgi.py", line 12, in <module>
2020-11-05T15:39:11.249565+00:00 app[web.1]: from django.core.wsgi import get_wsgi_application
2020-11-05T15:39:11.249565+00:00 app[web.1]: ModuleNotFoundError: No module named 'django'
2020-11-05T15:39:11.249689+00:00 app[web.1]: [2020-11-05 15:39:11 +0000] [9] [INFO] Worker exiting (pid: 9)
2020-11-05T15:39:11.268247+00:00 app[web.1]: [2020-11-05 15:39:11 +0000] [10] [INFO] Booting worker with pid: 10
2020-11-05T15:39:11.275520+00:00 app[web.1]: [2020-11-05 15:39:11 +0000] [10] [ERROR] Exception in worker process
2020-11-05T15:39:11.275522+00:00 app[web.1]: Traceback (most recent call last):
2020-11-05T15:39:11.275522+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-11-05T15:39:11.275522+00:00 app[web.1]: worker.init_process()
2020-11-05T15:39:11.275523+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/workers/base.py", line 129, in init_process
2020-11-05T15:39:11.275523+00:00 app[web.1]: self.load_wsgi()
2020-11-05T15:39:11.275523+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
2020-11-05T15:39:11.275523+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-11-05T15:39:11.275524+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-11-05T15:39:11.275524+00:00 app[web.1]: self.callable = self.load()
2020-11-05T15:39:11.275524+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
2020-11-05T15:39:11.275525+00:00 app[web.1]: return self.load_wsgiapp()
2020-11-05T15:39:11.275525+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
2020-11-05T15:39:11.275530+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-11-05T15:39:11.275530+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/util.py", line 350, in import_app
2020-11-05T15:39:11.275530+00:00 app[web.1]: __import__(module)
2020-11-05T15:39:11.275530+00:00 app[web.1]: File "/app/newspaper_project/wsgi.py", line 12, in <module>
2020-11-05T15:39:11.275531+00:00 app[web.1]: from django.core.wsgi import get_wsgi_application
2020-11-05T15:39:11.275531+00:00 app[web.1]: ModuleNotFoundError: No module named 'django'
2020-11-05T15:39:11.275653+00:00 app[web.1]: [2020-11-05 15:39:11 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-11-05T15:39:11.379193+00:00 app[web.1]: [2020-11-05 15:39:11 +0000] [4] [INFO] Shutting down: Master
2020-11-05T15:39:11.379278+00:00 app[web.1]: [2020-11-05 15:39:11 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-11-05T15:39:11.435045+00:00 heroku[web.1]: Process exited with status 3
2020-11-05T15:39:11.484782+00:00 heroku[web.1]: State changed from starting to crashed
2020-11-05T16:38:31.058784+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=newspaper-2020.herokuapp.com request_id=a1ab1357-b3d9-4f51-81b8-4bbacd42eebd fwd="37.200.249.220" dyno= connect= service= status=503 bytes= protocol=https
2020-11-05T16:38:32.907711+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=newspaper-2020.herokuapp.com request_id=3bda3bf8-d10f-496a-a228-a35286e148e0 fwd="37.200.249.220" dyno= connect= service= status=503 bytes= protocol=https

Django Heroku no module named 'my app name'

I'm trying to deploy my first Django app to Heroku. I was able to migrate the database and create a superuser, but now I'm stuck on this:
[2018-05-19 22:51:01 +0000] [4] [INFO] Listening at: http://0.0.0.0:31247 (4)
2018-05-19T22:51:01.283512+00:00 app[web.1]: [2018-05-19 22:51:01 +0000] [4] [INFO] Using worker: sync
2018-05-19T22:51:01.287214+00:00 app[web.1]: [2018-05-19 22:51:01 +0000] [8] [INFO] Booting worker with pid: 8
2018-05-19T22:51:01.292792+00:00 app[web.1]: [2018-05-19 22:51:01 +0000] [8] [ERROR] Exception in worker process
2018-05-19T22:51:01.292795+00:00 app[web.1]: Traceback (most recent call last):
2018-05-19T22:51:01.292796+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2018-05-19T22:51:01.292797+00:00 app[web.1]: worker.init_process()
2018-05-19T22:51:01.292798+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
2018-05-19T22:51:01.292800+00:00 app[web.1]: self.load_wsgi()
2018-05-19T22:51:01.292801+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
2018-05-19T22:51:01.292802+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2018-05-19T22:51:01.292803+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2018-05-19T22:51:01.292804+00:00 app[web.1]: self.callable = self.load()
2018-05-19T22:51:01.292806+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
2018-05-19T22:51:01.292807+00:00 app[web.1]: return self.load_wsgiapp()
2018-05-19T22:51:01.292808+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
2018-05-19T22:51:01.292809+00:00 app[web.1]: return util.import_app(self.app_uri)
2018-05-19T22:51:01.292810+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app
2018-05-19T22:51:01.292811+00:00 app[web.1]: __import__(module)
2018-05-19T22:51:01.292816+00:00 app[web.1]: ModuleNotFoundError: No module named 'whispering-shelf-25150'
2018-05-19T22:51:01.292905+00:00 app[web.1]: [2018-05-19 22:51:01 +0000] [8] [INFO] Worker exiting (pid: 8)
2018-05-19T22:51:01.329968+00:00 app[web.1]: [2018-05-19 22:51:01 +0000] [4] [INFO] Shutting down: Master
2018-05-19T22:51:01.330127+00:00 app[web.1]: [2018-05-19 22:51:01 +0000] [4] [INFO] Reason: Worker failed to boot.
2018-05-19T22:51:01.413026+00:00 heroku[web.1]: Process exited with status 3
2018-05-19T22:51:07.070132+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=whispering-shelf-25150.herokuapp.com request_id=4b10d0f1-939f-44b6-8ee0-b535cb07f8de fwd="185.5.121.201" dyno= connect= service= status=503 bytes= protocol=https
I developed my application using some tutorials that use mysite in my settings. But now my Heroku app is named whispering-shelf-25150.
What is the relation between those names? For example, should I change every occurence of mysite in settings.py to whispering-shelf-25150?
In my wsgi file I have:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "whispering-shelf-25150.settings.settings")
What is the relation between those names? For example, should I change every occurence of mysite in settings.py to whispering-shelf-25150?
The name of your Heroku app is irrelevant. There is no relationship between it and your Python module names.
The name of your settings module must match what's in your project folder, and the name of the top-level folder doesn't matter.
For example, if your directory tree looks like
project/ โ† ignore this
mysite/ โ† include this
settings.py โ† include this
some_app/
...
your settings module is mysite.settings.

ImportError: Failed to find application Heroku Django

I'm trying to deploy my app on heroku.Im folowing the tutorial given here But i keep getting this error:
[2016-07-19 20:12:52 +0000] [9] [ERROR] Exception in worker process
2016-07-19T20:12:52.439226+00:00 app[web.1]: Traceback (most recent call last):
2016-07-19T20:12:52.439230+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/base.py", line 136, in load_wsgi
2016-07-19T20:12:52.374824+00:00 app[web.1]: [2016-07-19 20:12:52 +0000] [3] [INFO] Starting gunicorn 19.6.0
2016-07-19T20:12:52.439228+00:00 app[web.1]: worker.init_process()
2016-07-19T20:12:52.439228+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/base.py", line 126, in init_process
2016-07-19T20:12:52.439229+00:00 app[web.1]: self.load_wsgi()
2016-07-19T20:12:52.424899+00:00 app[web.1]: [2016-07-19 20:12:52 +0000] [3] [INFO] Listening at: http://0.0.0.0:38254 (3)
2016-07-19T20:12:52.435017+00:00 app[web.1]: [2016-07-19 20:12:52 +0000] [9] [INFO] Booting worker with pid: 9
2016-07-19T20:12:52.425028+00:00 app[web.1]: [2016-07-19 20:12:52 +0000] [3] [INFO] Using worker: sync
2016-07-19T20:12:52.439227+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/arbiter.py", line 557, in spawn_worker
2016-07-19T20:12:52.439248+00:00 app[web.1]: self.callable = self.load()
2016-07-19T20:12:52.450973+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2016-07-19T20:12:52.439250+00:00 app[web.1]: return self.load_wsgiapp()
2016-07-19T20:12:52.439252+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/util.py", line 361, in import_app
2016-07-19T20:12:52.450970+00:00 app[web.1]: worker.init_process()
2016-07-19T20:12:52.439249+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
2016-07-19T20:12:52.439231+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2016-07-19T20:12:52.439254+00:00 app[web.1]: ImportError: Failed to find application, did you mean '/app/redcross/redcross/wsgi:application'?
2016-07-19T20:12:52.439248+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
2016-07-19T20:12:52.448577+00:00 app[web.1]: [2016-07-19 20:12:52 +0000] [10] [INFO] Booting worker with pid: 10
2016-07-19T20:12:52.450977+00:00 app[web.1]: return util.import_app(self.app_uri)
2016-07-19T20:12:52.450978+00:00 app[web.1]: raise ImportError(msg % (module.rsplit(".", 1)[0], obj))
2016-07-19T20:12:52.450971+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/base.py", line 126, in init_process
2016-07-19T20:12:52.450969+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/arbiter.py", line 557, in spawn_worker
2016-07-19T20:12:52.439251+00:00 app[web.1]: return util.import_app(self.app_uri)
2016-07-19T20:12:52.439253+00:00 app[web.1]: raise ImportError(msg % (module.rsplit(".", 1)[0], obj))
2016-07-19T20:12:52.450971+00:00 app[web.1]: self.load_wsgi()
2016-07-19T20:12:52.445788+00:00 app[web.1]: [2016-07-19 20:12:52 +0000] [9] [INFO] Worker exiting (pid: 9)
2016-07-19T20:12:52.439251+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
2016-07-19T20:12:52.450973+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
2016-07-19T20:12:52.450976+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
2016-07-19T20:12:52.450977+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/util.py", line 361, in import_app
2016-07-19T20:12:52.450958+00:00 app[web.1]: [2016-07-19 20:12:52 +0000] [10] [ERROR] Exception in worker process
2016-07-19T20:12:52.450972+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/base.py", line 136, in load_wsgi
2016-07-19T20:12:52.450975+00:00 app[web.1]: return self.load_wsgiapp()
2016-07-19T20:12:52.450979+00:00 app[web.1]: ImportError: Failed to find application, did you mean '/app/redcross/redcross/wsgi:application'?
2016-07-19T20:12:52.450968+00:00 app[web.1]: Traceback (most recent call last):
2016-07-19T20:12:52.450975+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
2016-07-19T20:12:52.708960+00:00 app[web.1]: [2016-07-19 20:12:52 +0000] [3] [INFO] Shutting down: Master
2016-07-19T20:12:52.709298+00:00 app[web.1]: [2016-07-19 20:12:52 +0000] [3] [INFO] Reason: Worker failed to boot.
2016-07-19T20:12:52.450974+00:00 app[web.1]: self.callable = self.load()
2016-07-19T20:12:52.451099+00:00 app[web.1]: [2016-07-19 20:12:52 +0000] [10] [INFO] Worker exiting (pid: 10)
2016-07-19T20:12:54.339128+00:00 heroku[web.1]: Process exited with status 3
2016-07-19T20:12:54.359632+00:00 heroku[web.1]: State changed from starting to crashed
Procfile:
web: python manage.py runserver
web: gunicorn $WSGI_PATH:application --log-file -
heroku ps:scale web=1
My directory Structure:
My procfile is in outermost directory along-with requirements.txt while wsgi.py is in outermost_folder/app_name/app_name/wsgi.py
Got it to work by explicitly providing path to wsgi application using --pythonpath
web: python manage.py runserver
web: gunicorn --pythonpath path_wsgi_application --log-file -
heroku ps:scale web=1