1
0

Home page tests

This commit is contained in:
2018-01-07 22:40:56 +03:00
parent fa7cb01c11
commit 9dc5217f57
5 changed files with 34 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ from django.shortcuts import render
from django.utils.translation import gettext as _
from django.conf import settings
from app.settings_db import get_setting
from django.utils import translation
# Create your views here.
@@ -11,6 +12,6 @@ def home(request):
return render(request, 'home.html', {
'title': _('Home'),
'app_name': settings.APP_NAME,
'app_description_text': get_setting('app_description_text'),
'app_mainpage_html': get_setting('app_mainpage_html'),
'app_home_head_html': get_setting('app_home_head_html', language=translation.get_language()),
'app_home_body_html': get_setting('app_home_body_html', language=translation.get_language()),
})