1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
netbox-community-netbox/netbox/utilities/context_processors.py

14 lines
339 B
Python
Raw Normal View History

2016-03-01 11:23:03 -05:00
from django.conf import settings as django_settings
from extras.registry import registry
2016-03-01 11:23:03 -05:00
def settings_and_registry(request):
2018-07-30 14:00:37 -04:00
"""
Expose Django settings and NetBox registry stores in the template context. Example: {{ settings.DEBUG }}
2018-07-30 14:00:37 -04:00
"""
2016-03-01 11:23:03 -05:00
return {
'settings': django_settings,
'registry': registry,
2016-03-01 11:23:03 -05:00
}