T
T
Tonatos2013-03-04 19:02:16
git
Tonatos, 2013-03-04 19:02:16

Forking django apps?

The problem is this. Decided to fork the django app on github. Actually, I need to finish it and include it in my project. And then suddenly I realized that I have absolutely no idea how the process of developing python packages is built.
There are:
- My project on django in git
- Fork of the application (which, outside the context of the project does not work), lives in its own repository
Problem:
- Correctly make them friends in order to be able to modify and push the application to your repository.
Simply copying the application and putting it in the project folder, and then pouring it into the general project repository is not at all kosher. I would like the application to live in a separate repository and be connected as a dependency via pip.
I tried to do it through git addmodule, but then the application is not connected through INSTALLED_APPS.
Maybe cheat with PYTHONPATH and add the path with the working copy of the application there?
Or create a working copy directly in site-packages?
I feel like I'm missing something fundamental and obvious. How to properly include a third-party application in a project so that it can be developed and hosted in its own repository, as is generally accepted?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
marazmiki, 2013-03-04
@marazmiki

If your application has a setup.py written using setuptools, then everything is very simple.

./setup.py develop

V
Vyacheslav Slinko, 2013-03-04
@KeepYourMind

1. If the application does not work outside the project, then there is absolutely no point in moving it to a separate repository.
2. If it still works, then it should be installed in the project in the same way as all similar applications. I suspect that for python it is pip.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question