0.0.18 bg_color for block

This commit is contained in:
SDE
2023-11-28 13:44:52 +03:00
parent 70f204b396
commit f0a45ee53f
10 changed files with 95 additions and 8 deletions

View File

@@ -10,14 +10,16 @@ from GeneralApp.funcs import get_inter_http_respose
def section_view(request, url):
try:
page = Section.objects.get(url=url)
section = Section.objects.get(url=url)
# from ArticlesApp.models import ArticleModel
# arts = ArticleModel.objects.filter(enable=True).order_by('-createDT')[:4]
services = section.rel_services_for_section.filter(enable=True).order_by('order')
Dict = {
'page': page,
'page': section,
'services': services,
# 'articles': arts,
}