render django views
from django.shortcuts import render # Create your views here. def geeks_view(request): # render function takes argument - request # and return HTML as response return render(request, "home.html")
Here is what the above code is Doing:
1. We are importing render function from django.shortcuts.
2. We are creating a view function named geeks_view.
3. We are passing request as an argument to the render function.
4. We are returning the HTML response to the browser.