I would like to refer to another project in django and develop it.

Asked 2 years ago, Updated 2 years ago, 47 views

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

2022-09-22 18:35

1 Answers

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')


2022-09-22 18:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.