![]() Raise NoAppException('Could not import "".'.format(name=module_name))į: Could not import "app". Visual Studio Code official flask tutorial debugging section My setup is: Python 3.8.3 Flask 1.1.2 Visual Studio Code 1.46.0 My current launch.json file is: By default the generated launch.json file had the 'FLASKDEBUG': '0' '-no-debugger' '-no-reload' lines, which prevented me from debugging. Rv.update(info.load_app().cli.list_commands(ctx))įile "C:\Users\OMITTED\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\cli.py", line 388, in load_appĪpp = locate_app(self, import_name, name)įile "C:\Users\OMITTED\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\cli.py", line 250, in locate_app ModuleNotFoundError: No module named 'app'Ĭontinued -> Traceback (most recent call last):įile "C:\Users\OMITTED\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\cli.py", line 556, in list_commands Navigate into the helloapp folder, then launch the program using python -m flask run. On Linux and macOS, use export set FLASKAPPwebapp on Windows use set FLASKAPPwebapp. Set an environment variable for FLASKAPP. C:\Users\OMITTED\Documents\project>cmd /C "set "PTVSD_SESSION_ID=1"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |