The File "./SRC/core/service/device. Py ", line 14, the in & lt; module> From the core. The service import app_user as server_app
ImportError: always import a name app_user,
Exclude please, thank you very much,
CodePudding user response:
"./SRC/core/" this part in the module search path?Is the PYTHONPATH or sys. The path list,
The working directory of the current procedure is which one?
CodePudding user response:
Enter sys. PathOutput:
['/var/pycharm 2020.2.3/plugins/python/helpers/pydev ', middle omit, '/var/LSZX - API - server - master/SRC/core', '/var/LSZX - API - server - master/SRC/core/service']
The working directory of the current procedure is:/var/LSZX - API - server - master
Start command is: python SRC/web/JTDSJ/manage py runserver then executes 0.0.0.0:8080