# Path: safety/compat.py



from django.conf import settings
from .compat import import_module
# -*- coding: utf-8 -*-



def get_session_store():
    mod = getattr(settings, 'SESSION_ENGINE', 'django.contrib.sessions.backends.db')
    engine = import_module(mod)
    store = engine.SessionStore()
    return store


def resolve(path, request):
    obj = import_from_path(path)
    return obj(request)


def import_from_path(path):
    try:
        module_path, attr = path.rsplit('.', 1)

# Path: safety/compat.py



# Path: safety/utils.py
from django.conf import settings
from .compat import import_module

# -*- coding: utf-8 -*-



def get_session_store():
    mod = getattr(settings, 'SESSION_ENGINE', 'django.contrib.sessions.backends.db')
    engine = import_module(mod)
    store = engine.SessionStore()
    return store


def resolve(path, request):
    obj = import_from_path(path)
    return obj(request)


def import_from_path(path):
    try:
        module_path, attr = path.rsplit('.', 1)

        module = import_module(module_path)