Flask Documentation (1.1.x)virtualenv Quickstart A Minimal Application What to do if the Server does not Start Debug Mode Routing Static Files Rendering Templates Accessing Request Data Redirects and Errors About Responses Sessions changelog are here for the interested. Design Decisions in Flask The Explicit Application Object The Routing System One Template Engine Micro with Dependencies Thread Locals What Flask is, What Flask is Not Request Forgery (CSRF) JSON Security Security Headers Copy/Paste to Terminal Unicode in Flask Automatic Conversion The Golden Rule Encoding and Decoding Yourself Configuring Editors Flask Extension Development0 码力 | 428 页 | 895.98 KB | 1 年前3
Flask Documentation (1.1.x)of export.) This does the following things: 1. it activates the debugger 2. it activates the automatic reloader 3. it enables the debug mode on the Flask application. You can also control debug mode in the Werkzeug documentation. Have another debugger in mind? See Working with Debuggers. 1.4.4 Routing Modern web applications use meaningful URLs to help users. Users are more likely to like a page makes it possible to keep certain elements on each page (like header, navigation and footer). Automatic escaping is enabled, so if name contains HTML it will be escaped automatically. If you can trust0 码力 | 291 页 | 1.25 MB | 1 年前3
Flask-RESTful Documentation Release 0.3.6started in using Flask- RESTful with Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ 0 码力 | 49 页 | 91.90 KB | 1 年前3
Flask-RESTful Documentation Release 0.3.8started in using Flask- RESTful with Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ 0 码力 | 55 页 | 93.30 KB | 1 年前3
Flask-RESTful Documentation Release 0.3.7started in using Flask- RESTful with Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ 0 码力 | 55 页 | 93.21 KB | 1 年前3
Flask-RESTful Documentation Release 0.3.10started in using Flask- RESTful with Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ 0 码力 | 42 页 | 84.60 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.6test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask TODOS[todo_id] = {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ is not required here because registering the blueprint with the app takes care of setting up the routing for the application. 1.6.3 Full Parameter Parsing Example Elsewhere in the documentation, we’ve 0 码力 | 46 页 | 245.60 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.7test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask TODOS[todo_id] = {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ is not required here because registering the blueprint with the app takes care of setting up the routing for the application. 1.6.3 Full Parameter Parsing Example Elsewhere in the documentation, we’ve 0 码力 | 50 页 | 253.09 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.8test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask TODOS[todo_id] = {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ is not required here because registering the blueprint with the app takes care of setting up the routing for the application. 1.6.3 Full Parameter Parsing Example Elsewhere in the documentation, we’ve 0 码力 | 50 页 | 253.64 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.10test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask TODOS[todo_id] = {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ is not required here because registering the blueprint with the app takes care of setting up the routing for the application. 1.6.3 Full Parameter Parsing Example Elsewhere in the documentation, we’ve 0 码力 | 39 页 | 212.29 KB | 1 年前3
共 10 条
- 1













