Module TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias Assign NameStore Call NameLoad handlers ExceptHandler type NameLoad body ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str ExceptHandler type NameLoad body Raise Call NameLoad Str TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call NameLoad NameLoad Str Lambda arguments args NameParam NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad orelse If Call NameLoad NameLoad Str body Assign NameStore NameLoad orelse Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If UnaryOpNot Call NameLoad NameLoad Str body For NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad Call AttributeLoad Call NameLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Break Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad Str body Expr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return Call NameLoad Call NameLoad NameLoad Str AttributeLoad NameLoad attr decorator_list NameLoad NameLoad
N/A N/A N/A importlib import_module N/A N/A N/A ImportError N/A django.utils.importlib import_module django.conf settings django.contrib messages django.contrib.auth load_backend login django.core.exceptions ImproperlyConfigured django.shortcuts redirect django.utils six django.views.decorators.csrf csrf_protect django.views.decorators.http require_POST N/A N/A django.contrib.auth get_user_model N/A User N/A get_user_model N/A N/A N/A ImportError N/A django.contrib.auth.models User _load_module N/A N/A path N/A N/A N/A Code to load create user module. Copied off django-browserid. N/A i N/A N/A path rfind . N/A N/A module attr N/A N/A path N/A i N/A path N/A N/A i 1 N/A N/A N/A mod N/A import_module module N/A N/A N/A ImportError N/A N/A N/A ImproperlyConfigured Error importing CAN_LOGIN_AS function. N/A N/A ValueError N/A N/A N/A ImproperlyConfigured Error importing CAN_LOGIN_AS function. Is CAN_LOGIN_AS a string? N/A N/A N/A can_login_as N/A getattr mod attr N/A N/A N/A AttributeError N/A N/A N/A ImproperlyConfigured N/A N/A Module {0} does not define a {1} function. format module attr N/A can_login_as N/A user_login N/A N/A request user_id N/A N/A N/A user N/A N/A N/A User objects get pk user_id N/A CAN_LOGIN_AS N/A getattr settings CAN_LOGIN_AS N/A N/A N/A r y N/A N/A N/A r user is_superuser N/A N/A isinstance CAN_LOGIN_AS N/A six string_types N/A N/A can_login_as N/A _load_module CAN_LOGIN_AS N/A N/A N/A hasattr CAN_LOGIN_AS __call__ N/A N/A can_login_as CAN_LOGIN_AS N/A N/A N/A ImproperlyConfigured The CAN_LOGIN_AS setting is neither a valid module nor callable. N/A N/A N/A can_login_as request user N/A N/A N/A N/A messages error request You do not have permission to do that. N/A N/A redirect N/A N/A N/A request META get HTTP_REFERER / N/A N/A N/A hasattr user backend N/A N/A backend N/A settings AUTHENTICATION_BACKENDS N/A N/A N/A user N/A N/A N/A load_backend backend get_user N/A user pk N/A N/A N/A user backend backend N/A N/A original_user_pk N/A N/A request user pk N/A N/A hasattr user backend N/A N/A N/A login request user N/A session_flag N/A getattr settings LOGINAS_FROM_USER_SESSION_FLAG loginas_from_user N/A N/A N/A request session N/A session_flag original_user_pk N/A N/A redirect N/A getattr settings LOGINAS_REDIRECT_URL N/A settings LOGIN_REDIRECT_URL N/A csrf_protect require_POST