Skip to content

exolever/django-changelog

Repository files navigation

django-changelog

image

Requirements Status

image

image

Manage changelog as migrations

Documentation

We have two commands, similar to Django Migrations, code based on it. One command creates an empty file ready for write our python code for the change (as a template file with some basic dependencies). We can include commands call or query using our django models.

We manage dependencies between changes at the same way that Django does. And also, we can manage conflicts through merging.

We only have two operations developed: RunPython and RunSQL (both of them, without parameters) When you want to apply for changes, please execute applychange with/without app_label. You will see messages similar to migrations.

Quickstart

Install django-changelog:

`pip install exo-changelog`

Add it to your `INSTALLED_APPS`:

INSTALLED_APPS = (
    ...
    'exo_changelog.apps.ExoChangelogConfig',
    ...
)

Create the changelog table: ./manage.py migrate exo_changelog

Features

  • Create an empty change: ./manage.py makechange <app_name>
  • Execute changes: ./manage.py applychange <app_name>

Credits

Tools used in rendering this package: