With this script you can automate creating duplicated parts of html code. If you want edit template you must also edit py file to assign proper values.
Example python file use csv file with saved:
- person/company,
- person/company countries,
- person/company images,
- person/company descriptions.
Only thing that is not automated is adding images to server.
Download repository.
If it is first time run please type in console:
sudo apt-get install python-pip
sudo pip install Jinja2
Prepare csv file named input.csv with 4 columns:
person/company | person/company countries | person/company images | person/company descriptions |
---|
Example is included.
In console opened in project directory run:
python htmlTemplating.py
Download repository.
If it is first time run please type in console:
python get-pip.py
pip install Jinja2
Prepare csv file named input.csv with 4 columns:
person/company | person/company countries | person/company images | person/company descriptions |
---|
Example is included.
Client country can be empty for polish clients but it has to be included as an empty column.
In console opened in project directory run:
python htmlTemplating.py