Django Version Control
A third-party Django application generated with django-plugin-template-cookiecutter.
Quick Start
1. Installation
Install the package via pip:
pip install version_control
2. Configuration
Add "version_control" to your INSTALLED_APPS setting:
INSTALLED_APPS = [
# ...existing apps...
"version_control",
]
Enable the middleware by adding it to your MIDDLEWARE setting:
MIDDLEWARE = [
# ...existing middleware...
"version_control.middleware.VersionControlMiddleware",
]
3. Version Control Dependencies
Depending on the version control system used by your project, install the corresponding third-party modules:
For Git projects:
pip install GitPython
For Mercurial projects:
pip install hglib # Python 3.x
pip install python-hglib # Python 2.7.x
For projects with bumpversion:
pip install bumpversion
Supported Backends
You can explicitly set which backend to use by defining VERSION_CONTROL_BACKEND in your settings.py. The available backends are:
Git
Requires the GitPython dependency.
VERSION_CONTROL_BACKEND = "version_control.backends.git.GitBackend"
Mercurial
Requires the hglib (or python-hglib) dependency.
VERSION_CONTROL_BACKEND = "version_control.backends.mercurial.MercurialBackend"
Bumpversion
Reads the version directly from your bumpversion configuration.
VERSION_CONTROL_BACKEND = "version_control.bumpversion.BumpversionVersionControlBackend"
Dummy
A basic backend useful for testing or local development environments that lack a version control system.
VERSION_CONTROL_BACKEND = "version_control.dummy.DummyBackend"
Release files for version-control 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| version_control-0.0.9.tar.gz | 6.9 kB | Details |
Release files / version_control-0.0.9.tar.gz
| Download URL | version_control-0.0.9.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6d3765f642f4af5e985ff587f81c26d38dff4bd3d03339d7968551d47c1c8b0
|
|
BLAKE2b-256 checksum How to use checksums |
9c9b39df0349c6f05a3e0d3683c50ff11d06ee531db9647f5f13d112d0b2cf89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.2
|