1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 12:54:16) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> import pprint >>> pprint.pprint(app.__dict__) {'_before_request_lock': <thread.lock object at 0x101487a50>, '_blueprint_order': [], '_error_handlers': {}, '_got_first_request': False, '_logger': None, '_static_folder': 'static', '_static_url_path': None, 'after_request_funcs': {}, 'before_first_request_funcs': [], 'before_request_funcs': {}, 'blueprints': {}, 'cli': <flask.cli.AppGroup object at 0x10310a710>, 'config': <Config {'JSON_AS_ASCII': True, 'USE_X_SENDFILE': False, 'SESSION_COOKIE_PATH': None, 'SESSION_COOKIE_DOMAIN': None, 'SESSION_COOKIE_NAME': 'session', 'SESSION_REFRESH_EACH_REQUEST': True, 'LOGGER_HANDLER_POLICY': 'always', 'LOGGER_NAME': '__main__', 'DEBUG': False, 'SECRET_KEY': None, 'EXPLAIN_TEMPLATE_LOADING': False, 'MAX_CONTENT_LENGTH': None, 'APPLICATION_ROOT': None, 'SERVER_NAME': None, 'PREFERRED_URL_SCHEME': 'http', 'JSONIFY_PRETTYPRINT_REGULAR': True, 'TESTING': False, 'PERMANENT_SESSION_LIFETIME': datetime.timedelta(31), 'PROPAGATE_EXCEPTIONS': None, 'TEMPLATES_AUTO_RELOAD': None, 'TRAP_BAD_REQUEST_ERRORS': False, 'JSON_SORT_KEYS': True, 'JSONIFY_MIMETYPE': 'application/json', 'SESSION_COOKIE_HTTPONLY': True, 'SEND_FILE_MAX_AGE_DEFAULT': datetime.timedelta(0, 43200), 'PRESERVE_CONTEXT_ON_EXCEPTION': None, 'SESSION_COOKIE_SECURE': False, 'TRAP_HTTP_EXCEPTIONS': False}>, 'error_handler_spec': {None: {}}, 'extensions': {}, 'import_name': '__main__', 'instance_path': '/Users/Wells/Documents/blogic/instance', 'name': 'hello', 'root_path': '/Users/Wells/Documents/blogic', 'shell_context_processors': [], 'teardown_appcontext_funcs': [], 'teardown_request_funcs': {}, 'template_context_processors': {None: [<function _default_template_ctx_processor at 0x1017c08c0>]}, 'template_folder': 'templates', 'url_build_error_handlers': [], 'url_default_functions': {}, 'url_map': Map([<Rule '/' (HEAD, OPTIONS, GET) -> hello>, <Rule '/static/<filename>' (HEAD, OPTIONS, GET) -> static>]), 'url_value_preprocessors': {}, 'view_functions': {'hello': <function hello at 0x10310b1b8>, 'static': <bound method Flask.send_static_file of <Flask 'hello'>>}}
|