feat: добавлены модели AboutPage и FooterSettings с админ-панелью и интеграцией скриптов
This commit is contained in:
13
smartsoltech/web/context_processors.py
Normal file
13
smartsoltech/web/context_processors.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from .models import FooterSettings
|
||||
|
||||
|
||||
def footer_settings(request):
|
||||
"""Context processor для настроек футера"""
|
||||
try:
|
||||
footer = FooterSettings.objects.filter(is_active=True).first()
|
||||
except:
|
||||
footer = None
|
||||
|
||||
return {
|
||||
'footer_settings': footer
|
||||
}
|
||||
Reference in New Issue
Block a user