Same Django project different GIT repositories

Which is the best way to have two different repositories on the same Django project?

I started developing a project months ago and I have the whole folder in the repository. I want to reuse some apps in the project and I would like to create a different repository for them since they will be spin-offs project. But I want to keep it updated.

  • Remove and ignore all files that have an extension from a git repository
  • Should I add Django admin static files to my git repo?
  • Django - syncdb causes error: “DatabaseError: no such table: django_site”
  • create a git repo for project skeleton
  • Deploy static assets to heroku from local machine - can't open file '': No such file or directory
  • python collectstatic --noinput error when deploying Django project to Heroku
  • Which is the best workflow, methodology, etc… to achieve this? Or is it a bad approuch?



  • Questions on workflow for a team using a git-svn repo
  • git diff extended header `index` 2nd hash corresponds to what
  • Is there a naming convention for git repositories?
  • How to get a buildroot project under source control
  • Which $VARIABLES can be passed to an external tool from git-gui?
  • how to `git ls-files` for just one directory level.
  • 2 Solutions collect form web for “Same Django project different GIT repositories”

    You can each app wrap 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).

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

    This way the apps a reuseable and decoupled from any prjoect.

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

    You can use submodule,

    $git submodule add git:// project2
    $cat .gitmodules

    .gitmodules output:

    [submodule "project2"]
      path = project2
      url = git://

    If you want to Clone some git project like submodule,

    git clone git://
    cd project2
    git submodule init
    Git Baby is a git and github fan, let's start git clone.