Skip to main content

A database schema evolution tool for the Django web framework.

Project description

Django Evolution is an add-on to the Django web framework that helps manage changes to the database schema.

“But wait, why would I want this? Doesn’t Django have migrations built-in? Isn’t this the same thing?”

Yes, yes it does, and it mostly is. In fact, Django Evolution works comfortably alongside Django’s migrations, helping you get the best out of both.

There are cases where you might want an alternative to migrations:

  1. You’re still stuck on Django 1.6 or earlier and need to make changes to your database.

    Django 1.6 is the last version without built-in support for migrations, and there are still codebases out there using it. Django Evolution can help keep upgrades manageable, and make it easier to transition all or part of your codebase to migrations when you finally upgrade.

  2. You’re distributing a self-installable web application, possibly used in large enterprises, where you have no control over when people are going to upgrade.

    Django’s migrations assume some level of planning around when changes are made to the schema and when they’re applied to a database. The more changes you make, and the more versions in-between what the user is running and what they upgrade to, the longer the upgrade time.

    If a customer is in control of when they upgrade, they might end up with years of migrations that need to be applied.

    Migrations apply one-by-one, possibly triggering the rebuild of a table many times during an upgrade. Django Evolution, on the other hand, can apply years worth of evolutions at once, optimized to perform as few table changes as possible. This can take days, hours or even seconds off the upgrade time.

What versions of Django are supported?

Django Evolution 2.x supports Django 1.6 through 4.2, and Python 2.7 through 3.12.

For older versions of Django, see Django Evolution 0.7.

There’s built-in support for evolving SQLite, Postgres, MySQL, and MariaDB databases.

I can’t imagine anything better… How do I start?

We have a bunch of documentation just for you!

There, you’ll find out how to install it, configure it for your project, generate evolutions, and apply them.

Plus, answers to all^W some of your burning questions, like “how do these work with migrations?” and “why is my syncdb/migrate command weird now?”

Who’s using Django Evolution today?

There’s dozens of us! Dozens!

At Beanbag we’re using it in Review Board, our open source code review product, used by thousands of companies world-wide. So we know it works. Review Board predated Django’s migrations by a whole lot of years, and continues to benefit from the optimized upgrade times of evolutions today.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_evolution-2.4.1.tar.gz (313.7 kB view details)

Uploaded Source

Built Distribution

django_evolution-2.4.1-py2.py3-none-any.whl (344.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django_evolution-2.4.1.tar.gz.

File metadata

  • Download URL: django_evolution-2.4.1.tar.gz
  • Upload date:
  • Size: 313.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for django_evolution-2.4.1.tar.gz
Algorithm Hash digest
SHA256 67b3b1678f7f5477a3fef91a8ad46336d6a0f8c726d9f5b1581be7ee90c37142
MD5 01466ae24a2a0c02470bceb469e3b4ea
BLAKE2b-256 43594ceb3c8ada2b646cf0e57b5ecec936438ced3345e79a1387eb8367dcdd51

See more details on using hashes here.

File details

Details for the file django_evolution-2.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_evolution-2.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a7df6ac68752c814778fcf8b4753269268577bc9ba04154c72683e961ca8da3a
MD5 b1c2b9f68ccf229044a905cb8988696f
BLAKE2b-256 52be434fe9600950b9422a4ae9a7ad07501703d1c2549335b4344f57c938623b

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