Пример #1
0
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")
Пример #2
0
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 )