Django Functional Views - 1
from django.shortcuts import render,HttpResponse
def product_list(request):
return HttpResponse("<h1>Merhaba</h1>")
from django.shortcuts import render,HttpResponse
def product_list(request):
context = {
"number1":10,
"number2":20
}
return render("index.html",context)
Yorumlar
Henüz Hiç Yorum Yapılmamış