I have followed this tutorial: How To Deploy A Django Project To Heroku - YouTube
And got some trouble.
First I had my Procfile, runtime.txt and requirements.txt put in the folder where also the manage.py file lie as I was given.
But it throw me some error that he couldnt find the default language and so on and then I copied it in the folder above. I dont did delete it, I just copied.
The Failure was disappeared.
But this gave me a new error: ModuleNotFoundError: No module named ‘web_pr.settings’.
I dont know how to fix it. It looks like The git repository starts in the wrong folder. I dont know : /
The Application log:
2023-01-21T13:24:20.149351+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/gunicorn/arbiter.py”, line 589, in spawn_worker
2023-01-21T13:24:20.149352+00:00 app[web.1]: worker.init_process()
2023-01-21T13:24:20.149352+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/gunicorn/workers/base.py”, line 134, in init_process
2023-01-21T13:24:20.149352+00:00 app[web.1]: self.load_wsgi()
2023-01-21T13:24:20.149352+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/gunicorn/workers/base.py”, line 146, in load_wsgi
2023-01-21T13:24:20.149353+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2023-01-21T13:24:20.149353+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/gunicorn/app/base.py”, line 67, in wsgi
2023-01-21T13:24:20.149353+00:00 app[web.1]: self.callable = self.load()
2023-01-21T13:24:20.149353+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py”, line 58, in load
2023-01-21T13:24:20.149353+00:00 app[web.1]: return self.load_wsgiapp()
2023-01-21T13:24:20.149353+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py”, line 48, in load_wsgiapp
2023-01-21T13:24:20.149354+00:00 app[web.1]: return util.import_app(self.app_uri)
2023-01-21T13:24:20.149354+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/gunicorn/util.py”, line 359, in import_app
2023-01-21T13:24:20.149354+00:00 app[web.1]: mod = importlib.import_module(module)
2023-01-21T13:24:20.149354+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/importlib/init.py”, line 126, in import_module
2023-01-21T13:24:20.149354+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2023-01-21T13:24:20.149355+00:00 app[web.1]: File “”, line 1050, in _gcd_import
2023-01-21T13:24:20.149355+00:00 app[web.1]: File “”, line 1027, in _find_and_load
2023-01-21T13:24:20.149355+00:00 app[web.1]: File “”, line 1006, in _find_and_load_unlocked
2023-01-21T13:24:20.149355+00:00 app[web.1]: File “”, line 688, in _load_unlocked
2023-01-21T13:24:20.149355+00:00 app[web.1]: File “”, line 883, in exec_module
2023-01-21T13:24:20.149356+00:00 app[web.1]: File “”, line 241, in _call_with_frames_removed
2023-01-21T13:24:20.149356+00:00 app[web.1]: File “/app/web_pr/web_pr/wsgi.py”, line 16, in
2023-01-21T13:24:20.149356+00:00 app[web.1]: application = get_wsgi_application()
2023-01-21T13:24:20.149356+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/django/core/wsgi.py”, line 12, in get_wsgi_application
2023-01-21T13:24:20.149356+00:00 app[web.1]: django.setup(set_prefix=False)
2023-01-21T13:24:20.149356+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/django/init.py”, line 19, in setup
2023-01-21T13:24:20.149357+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2023-01-21T13:24:20.149357+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/django/conf/init.py”, line 92, in getattr
2023-01-21T13:24:20.149357+00:00 app[web.1]: self._setup(name)
2023-01-21T13:24:20.149357+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/django/conf/init.py”, line 79, in _setup
2023-01-21T13:24:20.149357+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2023-01-21T13:24:20.149357+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/django/conf/init.py”, line 190, in init
2023-01-21T13:24:20.149358+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2023-01-21T13:24:20.149358+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/importlib/init.py”, line 126, in import_module
2023-01-21T13:24:20.149358+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2023-01-21T13:24:20.149358+00:00 app[web.1]: File “”, line 1050, in _gcd_import
2023-01-21T13:24:20.149358+00:00 app[web.1]: File “”, line 1027, in _find_and_load
2023-01-21T13:24:20.149359+00:00 app[web.1]: File “”, line 1004, in _find_and_load_unlocked
2023-01-21T13:24:20.149359+00:00 app[web.1]: ModuleNotFoundError: No module named ‘web_pr.settings’
2023-01-21T13:24:20.149436+00:00 app[web.1]: [2023-01-21 13:24:20 +0000] [10] [INFO] Worker exiting (pid: 10)
2023-01-21T13:24:20.187556+00:00 app[web.1]: [2023-01-21 13:24:20 +0000] [4] [WARNING] Worker with pid 10 was terminated due to signal 15
2023-01-21T13:24:20.489518+00:00 heroku[web.1]: State changed from starting to crashed