Extend django-cms with history and diff views.
Project description
# django-cmsplugin-diff
## What does it do?
Provides a history of changes, when plugins were edited, by who, when pages
are published and by who. It tracks the languages of each and provides a diff
showing what changed in both a field based view and a body based view.
This plugin is in development and is considered BETA, please test and report issues.
## Demonstration
To set up the demonstration on your local machine, you can::
```
git clone https://github.com/doctormo/django-cmsplugin-diff
cd django-cmsplugin-diff
./setup.py demo
```
Then visit the generated website as instructed.
## Installation
```
pip install cmsplugin-diff
```
Add the plugin to your site's settings.py, making sure it goes BEFORE `cms` or the templates will not over-ride as expected::
```
INSTALLED_APPS = (
'django.contrib.humanize',
...
'cmsplugin_diff',
'cms',
...
)
```
Add the comment middleware, this allows us to record the user_id and the comment when editing plugins::
```
MIDDLEWARE = [
...
'cmsplugin_diff.middleware.EditCommentMiddleware',
...
]
```
Add the urls to your urls.py::
```
urlpatterns += i18n_patterns(
...
url(r'^diff/', include('cmsplugin_diff.urls', namespace='cmsplugin_diff')),
...
)
```
## Issues
Please submit issues and merge requests at GitHub issues tracker: https://github.com/doctormo/django-cmsplugin-diff/issues/.
## What does it do?
Provides a history of changes, when plugins were edited, by who, when pages
are published and by who. It tracks the languages of each and provides a diff
showing what changed in both a field based view and a body based view.
This plugin is in development and is considered BETA, please test and report issues.
## Demonstration
To set up the demonstration on your local machine, you can::
```
git clone https://github.com/doctormo/django-cmsplugin-diff
cd django-cmsplugin-diff
./setup.py demo
```
Then visit the generated website as instructed.
## Installation
```
pip install cmsplugin-diff
```
Add the plugin to your site's settings.py, making sure it goes BEFORE `cms` or the templates will not over-ride as expected::
```
INSTALLED_APPS = (
'django.contrib.humanize',
...
'cmsplugin_diff',
'cms',
...
)
```
Add the comment middleware, this allows us to record the user_id and the comment when editing plugins::
```
MIDDLEWARE = [
...
'cmsplugin_diff.middleware.EditCommentMiddleware',
...
]
```
Add the urls to your urls.py::
```
urlpatterns += i18n_patterns(
...
url(r'^diff/', include('cmsplugin_diff.urls', namespace='cmsplugin_diff')),
...
)
```
## Issues
Please submit issues and merge requests at GitHub issues tracker: https://github.com/doctormo/django-cmsplugin-diff/issues/.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cmsplugin-diff-1.2.1.tar.gz
(27.7 kB
view details)
File details
Details for the file cmsplugin-diff-1.2.1.tar.gz
.
File metadata
- Download URL: cmsplugin-diff-1.2.1.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
efe4e993c8a18667032d08f6f96381237254a845a5bd51302de3bf2d5a3d76f0
|
|
MD5 |
a20cf723f452eaf4057f0312026a49a4
|
|
BLAKE2b-256 |
7f7a23e082f2dcd5c2c298cf2cc94134eccc6c7784a87b66149c573bd2df3a68
|