This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2025-09-15 23:54:59 +05:00
parent 41f6699da9
commit 42ed1b04cb
69 changed files with 5614 additions and 0 deletions

13
apps/charts/views.py Normal file
View File

@@ -0,0 +1,13 @@
from django.shortcuts import render
from django.core import serializers
from apps.pages.models import *
# Create your views here.
def index(request):
products = serializers.serialize('json', Product.objects.all())
context = {
'segment': 'charts',
'products': products
}
return render(request, 'charts/index.html', context)