Giới thiệu sản phẩm
PROJECT CUỐI KHÓA 2
from django.shortcuts import render
from .forms import contact_form
# Create your views here.
def home(request):
return render (request, 'index.html')
def articles(request):
return render (request, 'articles.html')
def deals(request):
return render (request, 'deals.html')
def about(request):
return render (request, 'about.html')
def contact(request):
form = contact_form()
#đặt biến form để lưu dữ liệu trong contact_form
if (request.method == 'POST'):
student_form = contact_form(request.POST)
if (student_form.is_valid):
student_form.save()
context = {'form_html': form}
return render (request, 'contact.html', context)
from django.shortcuts import render
from .forms import contact_form
# Create your views here.
def home(request):
return render (request, 'index.html')
def articles(request):
return render (request, 'articles.html')
def deals(request):
return render (request, 'deals.html')
def about(request):
return render (request, 'about.html')
def contact(request):
form = contact_form()
#đặt biến form để lưu dữ liệu trong contact_form
if (request.method == 'POST'):
student_form = contact_form(request.POST)
if (student_form.is_valid):
student_form.save()
context = {'form_html': form}
return render (request, 'contact.html', context)
Hình ảnh sản phẩm
Hãy bình luận để nhặt 100 thóc nhé
Sản phẩm cùng tác giả
Sản phẩm liên quan
Không có sản phẩm nào
Holly Waka Molly gì mà đỉnh quá vậy bạn eiii 🔥💕
Đăng nhập để tham gia bình luận
Ngất 😋
Đăng nhập để tham gia bình luận
👌👌 quá sáng tạo
Đăng nhập để tham gia bình luận
đỉnh nha
Đăng nhập để tham gia bình luận
🙏động lực là đây chứ đâu
Đăng nhập để tham gia bình luận
Đăng nhập để tham gia bình luận