Answer the question
In order to leave comments, you need to log in
Why the error: ModuleNotFoundError: No module named 'Project.wsgi'?
I'm making a Django website and trying to put it out for testing using Heroku.
When going to the site - the error " Application error ".
This is what cmd gave out:
app[web.1]: ModuleNotFoundError: No module named 'Project.wsgi'
app[web.1]: [2022-01-23 14:32:06 +0000] [9] [INFO] Worker exiting (pid: 9)
app[web.1]: [2022-01-23 14:32:06 +0000] [4] [INFO] Shutting down: Master
app[web.1]: [2022-01-23 14:32:06 +0000] [4] [INFO] Reason: Worker failed to boot.
2022-01-23T14:32:40.484247+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=test-my-site-id.herokuapp.com request_id=a7bef83d-3b60-40af-8859-926464542343 fwd="37.144.197.49" dyno= connect= service= status=503 bytes= protocol=https
web: gunicorn Project.wsgi --log-file -
Answer the question
In order to leave comments, you need to log in
Solution: change file path
web: sh -c 'cd папка_проекта && gunicorn приложение_с_wsgi.wsgi --log-file=-'
web: sh -c 'cd папка_проекта && gunicorn приложение_с_wsgi.wsgi --log-file=-'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question