'cod=H10 'App crashed' when trying to deploy to Heroku [duplicate]

I've been trying to deploy an app to Heroku, but can't get past the following errors (appear when I run heroku logs --tail). These are the errors:

ModuleNotFoundError: No module named 'app-name'

Process exited with status 3

heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/"

My files structure looks like this:

  • frontend (React app)
    • package.json
  • static
  • templates
  • website (Django app)
  • manage.py
  • package.json
  • Procfile
  • requirements.txt

My Procfile looks like this:

release: python manage.py migrate
web: gunicorn app-name.wsgi --log-file -


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source