ModuleNotFoundError - No module named 'main' when attempting to start service

后端 未结 4 559
梦毁少年i
梦毁少年i 2020-12-11 15:21

Context:

  • I created a Django application using Python 3.7.
  • I am (attempting) to use the 2nd generation Google App Engine standard environment.
4条回答
  •  无人及你
    2020-12-11 15:32

    As Farzad has said, just rename 'app.py' or 'application.py' or whatever name you have saved the application file to 'main.py'. If you can't change then create another project with the same code but this time with application file names as 'main.py'

提交回复
热议问题