Now the problem is that I have a django project where I' m taking some user data through a form, using a .html file(which is a word docx saved as .html with {{ }} django tags). Further I have a csv file(database for now). In the TAGS section(plz see above) I will tell the user to put all the names of the {{ }} which he has put in the .docx file. Now my job becomes to just read the .html file and substitute all template tags with the variables by using django's render_to_string.
Problems:
First:
How to loop over all tags underneath TAGS section like a dict?
Second:
If that's not possible how to make 2 .env files(with different names obviously)?
.env file
Now the problem is that I have a django project where I' m taking some user data through a form, using a .html file(which is a word docx saved as .html with {{ }} django tags). Further I have a csv file(database for now). In the TAGS section(plz see above) I will tell the user to put all the names of the {{ }} which he has put in the .docx file. Now my job becomes to just read the .html file and substitute all template tags with the variables by using django's render_to_string. Problems: First: How to loop over all tags underneath TAGS section like a dict?
Second: If that's not possible how to make 2 .env files(with different names obviously)?
Please help, I'm stuck badly.