I've implemented a general Python project I want to create a web server with a long drive and access the project and use function execution or classes How do I add a project on a different path in a long way? Should I approach him?
For example, there is a general Python project that implements addition and subtraction in the Jango project
I want to approach the project and use the plus function.
django python
Isn't the Python project a collection of py files divided into directories?
You can just copy the directory or add what you call the project to the library path.
For example, _init__.py
can be added explicitly as follows.
import sys
sys.path.append (' / project py file path')
© 2024 OneMinuteCode. All rights reserved.