main page cut count articles
This commit is contained in:
SDE
2023-09-22 12:45:10 +03:00
parent 0f9ce1abd6
commit 0b608e1b3e
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ def MainPage(request):
page = StaticPage.objects.get(url='main')
from ArticlesApp.models import ArticleModel
arts = ArticleModel.objects.filter(enable=True).order_by('-modifiedDT')
arts = ArticleModel.objects.filter(enable=True).order_by('-createDT')[:4]
Dict = {
'page': page,

View File

@@ -221,7 +221,7 @@ CKEDITOR_JQUERY_URL = 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery
CKEDITOR_CONFIGS = {
'default': {
'height': 291,
'width': '89vw',
'width': '70vw',
# 'filebrowserWindowHeight': 600,
# 'filebrowserWindowWidth': "100%",
'toolbar': 'Custom',