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')
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

loop

A

{% for project in projects %}

{% endfor %}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly