-
Notifications
You must be signed in to change notification settings - Fork 489
Home
To install django-reversion, follow these steps:
- Checkout the latest django-reversion release and copy or symlink the
src/reversion
directory into yourPYTHONPATH
. - Add
'reversion'
to yourINSTALLED_APPS
setting. - Run the command
manage.py syncdb
.
The latest release of django-reversion is designed to work with Django 1.3. If you have installed anything other than the latest version of Django, please check the compatible django versions page before downloading django-reversion.
There are a number of alternative methods you can use when installing django-reversion. Please check the installation methods page for more information.
django-reversion can be used to add a powerful rollback and recovery facility to your admin site. To enable this, simply register your models with a subclass of reversion.VersionAdmin
.
import reversion
class YourModelAdmin(reversion.VersionAdmin):
pass
admin.site.register(YourModel, YourModelAdmin)
For more information about admin integration, please visit the admin integration wiki page.
You can use django-reversion's API to build powerful version-controlled views outside of the built-in admin site. For more information, please visit the low level API wiki page.