- Install python (version 3 was tested)
- Install django and all the requirements
cd web_interface
python3 -m pip install -r requirements.txt- Install libreoffice
sudo apt install libreoffice -y- Make the migrations
python3 manage.py makemigrations- Migrate
python3 manage.py migrate- Start the app
python3 manage.py runserver- Start the app at certain port:
python3 manage.py runserver 127.0.0.1:8000- Start the app and run it in backgroud even after closing ssh session
nohup python3 manage.py runserver 127.0.0.1:8000 &- Close the background task by
kill -9 $pid- $pid variable is just the process id you could find it by running:
ps -ef | grep manage.pyA template is any docx file. For example teamplate.docx that contain:
Hi {{ employee.first_name }}
It will generate a generated_document.docx/pdf
Hi John
If the Employee first name is John in DB
It is a web interface to generate docx/pdf for employees starting from a base template and filling automatically data from a database
At the moment in settings is set up to save in SQLite which is just a local