mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-08 16:16:18 +01:00
Move context processor
This commit is contained in:
15
allianceauth/context_processors.py
Normal file
15
allianceauth/context_processors.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from django.conf import settings
|
||||
from django.utils import timezone
|
||||
|
||||
|
||||
def auth_settings(request):
|
||||
return {
|
||||
'DOMAIN': settings.DOMAIN,
|
||||
|
||||
'IPS4_URL': getattr(settings, 'IPS4_URL', ''),
|
||||
'SMF_URL': getattr(settings, 'SMF_URL', ''),
|
||||
'MARKET_URL': getattr(settings, 'MARKET_URL', ''),
|
||||
'CURRENT_UTC_TIME': timezone.now(),
|
||||
'JABBER_URL': getattr(settings, 'JABBER_URL', ''),
|
||||
'SITE_NAME': settings.SITE_NAME,
|
||||
}
|
||||
Reference in New Issue
Block a user