1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00
awx/awx/ui/context_processors.py
2016-05-05 09:08:40 -04:00

21 lines
448 B
Python

# Copyright (c) 2015 Ansible, Inc.
# All Rights Reserved.
# Django
from django.conf import settings as django_settings
# Ansible Tower
from awx.main.utils import get_awx_version
def settings(request):
return {
'settings': django_settings,
}
def version(request):
return {
'version': get_awx_version(),
'tower_version': get_awx_version(),
'short_tower_version': get_awx_version().split('-')[0],
}