Adds packages to syspath so they can be used as git submodules instead of pip packages. Should be only used in development.
Project description
=====
Django Git Submodules
=====
Django Submodules is a simple Django app that allows you
to manage apps as git submodules instead of pip.
This allows you to have a local development version of
third-party packages and merge changes from upstream.
Ideally should only be used in development.
These changes should be pushed back to the package repository
and installed with pip on production.
Quick start
-----------
1. Install django-git-submodules::
pip install django-git-submodules
2. Clone the the package you want on your project root::
git clone https://github.com/tomchristie/django-rest-framework.git
3. Import the app in your `settings.py`::
from dj_git_submodule import submodule
submodule.add('django-rest-framework')
4. Now you should be able to add the app to `INSTALLED_APPS` and have django find it successfully.
5. If you need to import multiple apps, you can use wildcards(through glob)::
from dj_git_submodule import submodule
submodule.add(submodule.locate('custom-apps-*'))
Django Git Submodules
=====
Django Submodules is a simple Django app that allows you
to manage apps as git submodules instead of pip.
This allows you to have a local development version of
third-party packages and merge changes from upstream.
Ideally should only be used in development.
These changes should be pushed back to the package repository
and installed with pip on production.
Quick start
-----------
1. Install django-git-submodules::
pip install django-git-submodules
2. Clone the the package you want on your project root::
git clone https://github.com/tomchristie/django-rest-framework.git
3. Import the app in your `settings.py`::
from dj_git_submodule import submodule
submodule.add('django-rest-framework')
4. Now you should be able to add the app to `INSTALLED_APPS` and have django find it successfully.
5. If you need to import multiple apps, you can use wildcards(through glob)::
from dj_git_submodule import submodule
submodule.add(submodule.locate('custom-apps-*'))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-git-submodules-1.1.1.tar.gz
.
File metadata
- Download URL: django-git-submodules-1.1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f61ad546281ae111eab0b975cff31feb255ceb53818e0558b01666be45cca732 |
|
MD5 | 17103f24b0a499f6c7583f93a02a8042 |
|
BLAKE2b-256 | 21c396ffc5f42c68a9fcb7911547a5e1da7b19b3ceec4ff3a66f14d85102fc00 |