def get_current_environ():
thread_local = AutomatedLoggingMiddleware.thread_local<EOL>if hasattr(thread_local, '<STR_LIT>'):<EOL><INDENT>request_uri = thread_local.request_uri<EOL><DEDENT>else:<EOL><INDENT>request_uri = None<EOL><DEDENT>if hasattr(thread_local, '<STR_LIT>'):<EOL><INDENT>application = thread_local.application<EOL>application = Application.objects.get_or_create(name=application)[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>application = None<EOL><DEDENT>if hasattr(thread_local, '<STR_LIT>'):<EOL><INDENT>method = thread_local.method<EOL><DEDENT>else:<EOL><INDENT>method = None<EOL><DEDENT>if hasattr(thread_local, '<STR_LIT:status>'):<EOL><INDENT>status = thread_local.status<EOL><DEDENT>else:<EOL><INDENT>status = None<EOL><DEDENT>return request_uri, application, method, status<EOL>
Get current application and path object from middleware