Home > other >  New import ask next super simple problem
New import ask next super simple problem

Time:11-27

In the device. The referenced in py app_user. Py, two p y under the same package, the system is based on the django framework, run time always prompt:
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. Path
Output:
['/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
  • Related