Did I find the right examples for you? yes no

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)

src/d/j/django-resourcetags-1.1/django_resourcetags/handlers.py   django-resourcetags(Download)
 
from django.conf import settings
from .util import load_module_attr, memoize
 
__all__ = ['get_handler']
def get_handlers ():
	handlers = {}
	handler_names = getattr (settings, 'RESOURCE_HANDLERS', {})
	for mimetype, name in handler_names.items ():
		handlers[mimetype] = load_module_attr (name)

src/d/j/django-resourcetags-1.1/django_resourcetags/compression/__init__.py   django-resourcetags(Download)
import logging
from django.conf import settings
from ..util import load_module_attr
 
__all__ = ['compress']