Skip to main content

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/.

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.1.1.tar.gz (27.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page