[Python] Flask app deployment with gunicorn ModuleNotFoundError: No module named 'app'

Discussão em 'Python' iniciado por Stack, Março 15, 2025.

  1. Stack

    Stack Membro Participativo

    My web app has the following folder structure:

    [​IMG]

    I am using gunicorn command as following, but I am getting the error: ModuleNotFoundError: No module named 'app'

    gunicorn --bind=0.0.0.0 app:app


    I also tried: gunicorn --bind=0.0.0.0 /application/app:app , but I get the same error.

    Could you plase help me with the right format/path for gunicorn?

    Continue reading...

Compartilhe esta Página