# Path: baton/config.py
# def get_config(key):
#     safe = ['SITE_HEADER', 'COPYRIGHT', 'POWERED_BY', ]
#     user_settings = getattr(settings, 'BATON', None)
# 
#     if user_settings is None:
#         value = default_config.get(key, None)
#     else:
#         value = user_settings.get(key, default_config.get(key, None))
# 
#     if key in safe:
#         return mark_safe(value)
# 
#     return value


from django.contrib import admin
from ..config import get_config



class BatonAdminSite(admin.AdminSite):
    site_header = get_config('SITE_HEADER')
    site_title = get_config('SITE_TITLE')

# Path: baton/config.py
# def get_config(key):
#     safe = ['SITE_HEADER', 'COPYRIGHT', 'POWERED_BY', ]
#     user_settings = getattr(settings, 'BATON', None)
# 
#     if user_settings is None:
#         value = default_config.get(key, None)
#     else:
#         value = user_settings.get(key, default_config.get(key, None))
# 
#     if key in safe:
#         return mark_safe(value)
# 
#     return value


# Path: baton/autodiscover/admin.py
from django.contrib import admin
from ..config import get_config




class BatonAdminSite(admin.AdminSite):
    site_header = get_config('SITE_HEADER')
    site_title = get_config('SITE_TITLE')

    index_title = get_config('INDEX_TITLE')