Same Django project different GIT repositories

You can wrap each app as a python package, which has its own GIT repo. And save all your packages in some private (or public?) python packages repository (like Gemfury).

Then, in your projects, just use the app as you install django itself.. pip install myapp

This way the apps a reusable and decoupled from any project.

(This works very well for myself.. perhaps there is a better way)


You can use submodule,

$git submodule add git://github.com/yourusername/project2.git project2

$cat .gitmodules

.gitmodules output:

[submodule "project2"]
  path = project2
  url = git://github.com/yourusername/project2.git

If you want to Clone some git project like submodule,

git clone git://github.com/yourusername/project2.git
cd project2
git submodule init