def bind_proxy(values, category=None, field=None, verbose_name=None, help_text='<STR_LIT>', static=True, readonly=False):
addrs = OrderedDict()<EOL>depth = <NUM_LIT:3><EOL>for local_name, locals_dict in traverse_local_prefs(depth):<EOL><INDENT>addrs[id(locals_dict[local_name])] = local_name<EOL><DEDENT>proxies = []<EOL>locals_dict = get_frame_locals(depth)<EOL>for value in values:  <EOL><INDENT>id_val = id(value)<EOL>if id_val in addrs:<EOL><INDENT>local_name = addrs[id_val]<EOL>local_val = locals_dict[local_name]<EOL>if isinstance(local_val, PatchedLocal) and not isinstance(local_val, PrefProxy):<EOL><INDENT>proxy = PrefProxy(<EOL>local_name, value.val,<EOL>category=category,<EOL>field=field,<EOL>verbose_name=verbose_name,<EOL>help_text=help_text,<EOL>static=static,<EOL>readonly=readonly,<EOL>)<EOL>app_name = locals_dict['<STR_LIT>'].split('<STR_LIT:.>')[-<NUM_LIT:2>]  <EOL>prefs = get_prefs()<EOL>if app_name not in prefs:<EOL><INDENT>prefs[app_name] = OrderedDict()<EOL><DEDENT>prefs[app_name][local_name.lower()] = proxy<EOL>locals_dict[local_name] = proxy<EOL>proxies.append(proxy)<EOL><DEDENT><DEDENT><DEDENT>return proxies<EOL>
Binds PrefProxy objects to module variables used by apps as preferences.

    :param list|tuple values: Preference values.

    :param str|unicode category: Category name the preference belongs to.

    :param Field field: Django model field to represent this preference.

    :param str|unicode verbose_name: Field verbose name.

    :param str|unicode help_text: Field help text.

    :param bool static: Leave this preference static (do not store in DB).

    :param bool readonly: Make this field read only.

    :rtype: list