https://github.com/django-cms/djangocms-versioning
General purpose versioning package for Django CMS 4 and above.
https://github.com/django-cms/djangocms-versioning
Last synced: 8 months ago
JSON representation
General purpose versioning package for Django CMS 4 and above.
- Host: GitHub
- URL: https://github.com/django-cms/djangocms-versioning
- Owner: django-cms
- License: other
- Created: 2018-06-05T13:09:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-25T01:36:28.000Z (8 months ago)
- Last Synced: 2025-03-28T09:01:46.295Z (8 months ago)
- Language: Python
- Homepage:
- Size: 1.59 MB
- Stars: 35
- Watchers: 11
- Forks: 33
- Open Issues: 15
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE.txt
- Security: SECURITY.md
Awesome Lists containing this project
README
|django| |djangocms4|
*********************
django CMS Versioning
*********************
.. warning::
This is the development branch for django CMS version 4.1 support.
For django CMS V4.0 support, see `support/django-cms-4.0.x branch `_
============
Installation
============
Requirements
============
django CMS Versioning requires that you have a django CMS 4.0 (or higher) project already running and set up.
To install
==========
Run::
pip install djangocms-versioning
Add ``djangocms_versioning`` to your project's ``INSTALLED_APPS``.
Run::
python -m manage migrate djangocms_versioning
python -m manage create_versions --user-id
to perform the application's database migrations and (only if you have an existing database) add version objects
needed to mark existing versions as draft.
=====
Usage
=====
Versioning integration instructions are available in `docs/versioning_integration.rst `_
An example implementation can be found here:
- `djangocms_versioning/test_utils/polls/cms_config.py `_
- `djangocms_versioning/test_utils/polls/models.py `_
Testing
=======
To run all the tests the only thing you need to do is run
pip install -r tests/requirements.txt
python setup.py test
Documentation
=============
We maintain documentation under the ``docs`` folder using rst format.
To generate the HTML documentation you will need to install ``sphinx`` (``pip install sphinx``) and ``graphviz`` (as per your operating system's package management system). You can then generate the docs using the following command:
Run::
cd docs/
make html
This should generate all html files from rst documents under `docs/_build` folder, which can be browsed.
============
Contributing
============
Because this is a an open-source project, we welcome everyone to
`get involved in the project `_ and
`receive a reward `_ for their contribution.
Become part of a fantastic community and help us make django CMS the best CMS in the world.
We'll be delighted to receive your
feedback in the form of issues and pull requests. Before submitting your
pull request, please review our `contribution guidelines
`_.
The project makes use of git pre-commit hooks to maintain code quality.
Please follow the installation steps to get `pre-commit `_
setup in your development environment.
We're grateful to all contributors who have helped create and maintain
this package. Contributors are listed at the `contributors
`_
section.
One of the easiest contributions you can make is helping to translate this addon on
`Transifex `_.
To update transifex translation in this repo you need to download the
`transifex cli `_ and run
``tx pull`` from the repo's root directory. After downloading the translations
do not forget to run the ``compilemessages`` management command.
.. |django| image:: https://img.shields.io/badge/django-3.2%2B-blue.svg
:target: https://www.djangoproject.com/
.. |djangocms4| image:: https://img.shields.io/badge/django%20CMS-4.1-blue.svg
:target: https://www.django-cms.org/