diff --git a/GeneralApp/views.py b/GeneralApp/views.py index 8123b52..9847316 100644 --- a/GeneralApp/views.py +++ b/GeneralApp/views.py @@ -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, diff --git a/TWB/settings.py b/TWB/settings.py index b78404b..6766476 100644 --- a/TWB/settings.py +++ b/TWB/settings.py @@ -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',