How To Install python3-django-sass-processor on Kali Linux
Introduction
In this tutorial we learn how to install python3-django-sass-processor
on Kali Linux.
What is python3-django-sass-processor
python3-django-sass-processor is:
django-sass-processor converts *.scss or *.sass files into *.css while rendering templates. For performance reasons this is done only once, since the preprocessor keeps track on the timestamps and only recompiles, if any of the imported SASS/SCSS files is younger than the corresponding generated CSS file.
This Django app provides a templatetag {% sass_src ‘path/to/file.scss’ %}, which can be used instead of the built-in templatetag static. Since version 0.3.4 this also works for Jinja2 templates.
If SASS/SCSS files shall be referenced through the Media class, or media property, the SASS processor can be used directly.
Additionally, django-sass-processor is shipped with a management command, which can convert the content of all occurrences inside the templatetag sass_src as an offline operation. Hence the libsass compiler is not required in a production environment.
During development, a sourcemap <https://developer.chrome.com="" devtools="" docs="" css-preprocessors="">
__ is generated along side
with the compiled *.css file. This allows one to debug style sheet
errors much easier.
With this tool, you can safely remove your Ruby installations “Compass” and “SASS” from your Django projects. You neither need any directory “watching” daemons based on node.js.
There are three methods to install python3-django-sass-processor
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python3-django-sass-processor Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python3-django-sass-processor
using apt-get
by running the following command:
sudo apt-get -y install python3-django-sass-processor
Install python3-django-sass-processor Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python3-django-sass-processor
using apt
by running the following command:
sudo apt -y install python3-django-sass-processor
Install python3-django-sass-processor Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python3-django-sass-processor
using aptitude
by running the following command:
sudo aptitude -y install python3-django-sass-processor
How To Uninstall python3-django-sass-processor on Kali Linux
To uninstall only the python3-django-sass-processor
package we can use the following command:
sudo apt-get remove python3-django-sass-processor
Uninstall python3-django-sass-processor And Its Dependencies
To uninstall python3-django-sass-processor
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove python3-django-sass-processor
Remove python3-django-sass-processor Configurations and Data
To remove python3-django-sass-processor
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge python3-django-sass-processor
Remove python3-django-sass-processor configuration, data, and all of its dependencies
We can use the following command to remove python3-django-sass-processor
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-django-sass-processor
Dependencies
python3-django-sass-processor have the following dependencies:
References
Summary
In this tutorial we learn how to install python3-django-sass-processor
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.