def service(request): if request.method == 'POST': name = request.POST['name'] email = request.POST['email'] mass = request.POST['mass'] massagees = massage(name = name, email = email , mass = mass ) massagees.save() return render(request, "services.html")
def Home(request): if request.method == 'POST': name = request.POST['name'] email = request.POST['email'] mass = request.POST['mass'] massagees = massage(name = name, email = email , mass = mass ) massagees.save() post = services.objects.all() contex = { 'post' :post } return render(request, 'index.html',contex )