Create a Template
In this lesson, you’re going to create a template for your Django app so you won’t have to paste all your HTML directly into your views. Django has already provided you with the import statement you’re going to need for this:
from django.shortcuts import render
Now that you have
render(), use it in your function with the template name
# Create your views here. def project_list(request): return render(request, 'projects/index.html')
Comments & Discussion
Become a Member to join the conversation.