Skip to main content

Dynamic model definition and alteration (evolving schemas)

Project description

Dynamic model definition and alteration (evolving schemas).

https://travis-ci.org/charettes/django-mutant.svg?branch=master https://coveralls.io/repos/charettes/django-mutant/badge.svg?branch=master&service=github

Overview

Django provides a great ORM and with the power of migrations one can easily perform schema alteration.

However, some projects may require runtime schema alteration and that’s what django-mutant provides.

The main concept was inspired by those projects:

Installation

pip install django-mutant

Make sure 'django.contrib.contenttypes' and 'mutant' are in your INSTALLED_APPS

INSTALLED_APPS += ('django.contrib.contenttypes', 'mutant')

Migrating to django-mutant 0.2 and Django 1.7+

If you used mutant with Django < 1.7 and are willing to migrate forward you’ll have to run the following steps in order to make sure you database schema is synchronized with Django’s migration state.

  1. Fake the initial mutant migration.

  2. For every mutant.contrib application you installed make sure to fake their initial migration and run their following migration. For example, if you had the mutant.contrib.boolean application installed you want to run manage.py migrate boolean --fake 0001 && manage.py migrate boolean

Resources

Get in touch and contribute

>From now on I think the best way to contribute and get in touch is using github messaging system (issues and pull requests).

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

django-mutant-0.2.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

django_mutant-0.2-py2.py3-none-any.whl (62.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-mutant-0.2.tar.gz.

File metadata

  • Download URL: django-mutant-0.2.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-mutant-0.2.tar.gz
Algorithm Hash digest
SHA256 19fbc6e774572a88ccb278a8bff87560d67a88c4a92dd90da03cd1060c6c2409
MD5 c7dfac8d16b734700915c9492857e99f
BLAKE2b-256 523461af0da45f786455aca0d3ada96021368ab8b7900189b7ac71dcd08918cb

See more details on using hashes here.

File details

Details for the file django_mutant-0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_mutant-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4a49cc1e38939c9e0737413493588fcf838d52bc4034e3685c73bd6671313a2a
MD5 d3288bb3a769053fd455c96bc0b49299
BLAKE2b-256 cba83320b313f9f252e93aa04059a02ee3eb86e0bfbba0817b28985015a2663e

See more details on using hashes here.

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