Templates Flashcards
1
Q
Creating Templates
A
first create a “templates” folder in app folder
then project name then some html in it.
This is “rendering” a template
URLs def home(request): return render(request, 'generator/home.html')
2
Q
loop
A
{% for project in projects %}
{% endfor %}