'Returns a static file storage if available in the given app.'

def __init__(self, app, *args, **kwargs):

    self.app_module = app
    if (self.app_module == 'django.contrib.admin'):
        self.prefix = 'admin'
        self.source_dir = 'media'
    mod = import_module(self.app_module)
    mod_path = os.path.dirname(mod.__file__)
    location = os.path.join(mod_path, self.source_dir)
    super(AppStaticStorage, self).__init__(location, *args, **kwargs)
