You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
595 B
28 lines
595 B
from django.shortcuts import render
|
|
from store.models import Product, Category
|
|
|
|
|
|
def index(request):
|
|
c = dict(
|
|
products=Product.objects.order_by('-pk')[:8],
|
|
aaa=[1,2,3,4,5,6,7,8,9,0],
|
|
)
|
|
|
|
return render(request, 'index.jinja', c)
|
|
|
|
|
|
def advantages(request):
|
|
return render(request, 'advantages.jinja')
|
|
|
|
def payment(request):
|
|
return render(request, 'payment.jinja')
|
|
|
|
def delivery(request):
|
|
return render(request, 'delivery.jinja')
|
|
|
|
def contacts(request):
|
|
return render(request, 'contacts.jinja')
|
|
|
|
def faq(request):
|
|
return render(request, 'faq.jinja')
|
|
|
|
|