Home page tests
This commit is contained in:
@@ -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()),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user