How To Install python-django-evolution on CentOS 7

In this tutorial we learn how to install python-django-evolution on CentOS 7. python-django-evolution is Schema evolution for Django

Introduction

In this tutorial we learn how to install python-django-evolution on CentOS 7.

What is python-django-evolution

When you run ./manage.py syncdb, Django will look for any new models that have been defined, and add a database table to represent those new models. However, if you make a change to an existing model, ./manage.py syncdb will not make any changes to the database. This is where Django Evolution fits in. Django Evolution is an extension to Django that allows you to track changes in your models over time, and to update the database to reflect those changes.

We can use yum or dnf to install python-django-evolution on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-django-evolution.

Install python-django-evolution on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python-django-evolution using yum by running the following command:

sudo yum -y install python-django-evolution

Install python-django-evolution on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install python-django-evolution using dnf by running the following command:

sudo dnf -y install python-django-evolution

How To Uninstall python-django-evolution on CentOS 7

To uninstall only the python-django-evolution package we can use the following command:

sudo dnf remove python-django-evolution

References

Summary

In this tutorial we learn how to install python-django-evolution on CentOS 7 using yum and dnf.