How To Install python-django-compressor on CentOS 7
Introduction
In this tutorial we learn how to install python-django-compressor
on CentOS 7.
What is python-django-compressor
Django Compressor combines and compresses linked and inline Javascript or CSS in a Django templates into cacheable static files by using the
compress
template tag. HTML in between{% compress js/css %}
and{% endcompress %}
is parsed and searched for CSS or JS. These styles and scripts are subsequently processed with optional, configurable compilers and filters.
We can use yum
or dnf
to install python-django-compressor
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-django-compressor.
Install python-django-compressor on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python-django-compressor
using yum
by running the following command:
Install python-django-compressor 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.
After updating yum database, We can install python-django-compressor
using dnf
by running the following command:
How To Uninstall python-django-compressor on CentOS 7
To uninstall only the python-django-compressor
package we can use the following command:
References
Summary
In this tutorial we learn how to install python-django-compressor
on CentOS 7 using yum
and dnf
.