from django.conf import settings


def get_setting(name, default):
    """ Get setting by name.
    """
    return getattr(settings, 'ADJAX_{0}'.format(name.upper()), default)


TEMPLATE = get_setting('template', 'adjax/interface')
DATA = get_setting('data', {})
CONTENT_TYPE = get_setting('content_type', 'application/javascript')
VIEWS_MODULE_NAME = get_setting('module_name', 'ajax')
TYPES_MODULE_NAME = get_setting('module_name', 'types')

from django.conf import settings


def get_setting(name, default):
    """ Get setting by name.
    """
    return getattr(settings, 'ADJAX_{0}'.format(name.upper()), default)


TEMPLATE = get_setting('template', 'adjax/interface')
DATA = get_setting('data', {})
CONTENT_TYPE = get_setting('content_type', 'application/javascript')
VIEWS_MODULE_NAME = get_setting('views_module_name', 'ajax')
TYPES_MODULE_NAME = get_setting('types_module_name', 'types')

Fix module name settings