Dynamic model definition and alteration (evolving schemas)
Project description
Dynamic model definition and alteration (evolving schemas).
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:
Will Hardy dynamic-models’s documentation and talk.
And by django-dynamo.
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.
Fake the initial mutant migration.
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
DjangoCon Europe 2013 talk about mutant and other dynamic model alternatives given by Juergen Schackmann.
A getting started guide with mutant guide by @integricho.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-mutant-0.3a2.tar.gz
.
File metadata
- Download URL: django-mutant-0.3a2.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5cbe836dcd07c13cb3f578b33b10fb5a69b87611f43bbef3aefdfe88eae5c68 |
|
MD5 | c58c66be6ece3737d680821f6335ec1d |
|
BLAKE2b-256 | a39fdfb014131fc29bfd2daaea6b24ed976ef915e7d02b6b17d56d01594d8259 |
File details
Details for the file django_mutant-0.3a2-py2.py3-none-any.whl
.
File metadata
- Download URL: django_mutant-0.3a2-py2.py3-none-any.whl
- Upload date:
- Size: 64.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de6040bd1d549a0817cd978b4893afe9e970313113389c15db1c2ee28409aaaf |
|
MD5 | 357ecc10b110ca588256ecac6f366643 |
|
BLAKE2b-256 | d8d4b3c2c4b10ed6b7d305e9f7de7d411f47d893e8cdb4c2471c872de262f167 |