If we need the template language to render the rendered HTML file to the front end when the backend has data dynamically extracted to the front end
The index function in our views.py has an S variable in the list that passes the data in curly braces to the {"list": s} to pass s to the list.
The place to add the HTML is to use 2 curly braces to introduce the
--------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------
If we comment out s, use the S1 dictionary to pass
If you use a dictionary, the front end of {{}} is introduced dict.name with a period Fuga name
--------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------
If we can use a lot of variables, then we do not need to directly pass parameters. Use locals () to refer to all variables. In the front page, you also use a period character to export the variable (list with index, dictionary with key)
The Django template language is passed from the backend to the front end