Flask Documentation (1.1.x)
Creating Signals Sending Signals Signals and Flask’s Request Context Decorator Based Signal Subscriptions Core Signals Pluggable Views Basic Principle Method Hints Method Based Dispatching Decorating Views Method that Flask is lacking in functionality. The “micro” in microframework means Flask aims to keep the core simple but extensible. Flask won’t make many decisions for you, such as what database to use. Those variety of extensions available in the community to integrate your project for production. The Flask core team reviews extensions and ensures approved extensions do not break with future releases. As your0 码力 | 428 页 | 895.98 KB | 1 年前3Flask Documentation (1.1.x)
that Flask is lacking in functionality. The “micro” in microframework means Flask aims to keep the core simple but extensible. Flask won’t make many decisions for you, such as what database to use. Those variety of extensions available in the community to integrate your project for production. The Flask core team reviews extensions and ensures approved extensions do not break with future releases. As your Documentation (1.1.x), Release 1.1.4 If you want to understand how that works and how you can implement tests with context locals, read this section, otherwise just skip it. Certain objects in Flask are global0 码力 | 291 页 | 1.25 MB | 1 年前3Flask-RESTful Documentation Release 0.3.6
. . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3 Additional Notes 37 3.1 Running the Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Python response object Parameters resource – The resource as a flask view function owns_endpoint(endpoint) Tests if an endpoint name (not path) belongs to this Api. Takes in to account the Blueprint name part of Running the Tests A Makefile is included to take care of setting up a virtualenv for running tests. All you need to do is run: $ make test To change the Python version used to run the tests (default is0 码力 | 46 页 | 245.60 KB | 1 年前3Flask-RESTful Documentation Release 0.3.6
[http://flask.pocoo.org/docs/license/] for legal information governing this project. Running the Tests Installation Install Flask-RESTful with pip pip install flask-restful The development version response object Parameters: resource – The resource as a flask view function owns_endpoint(endpoint) Tests if an endpoint name (not path) belongs to this Api. Takes in to account the Blueprint name part of Running the Tests A Makefile is included to take care of setting up a virtualenv for running tests. All you need to do is run: $ make test To change the Python version used to run the tests (default is0 码力 | 49 页 | 91.90 KB | 1 年前3Flask-RESTful Documentation Release 0.3.7
. . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3 Additional Notes 41 3.1 Running the Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Python response object Parameters resource – The resource as a flask view function owns_endpoint(endpoint) Tests if an endpoint name (not path) belongs to this Api. Takes in to account the Blueprint name part of Running the Tests A Makefile is included to take care of setting up a virtualenv for running tests. All you need to do is run: $ make test To change the Python version used to run the tests (default is0 码力 | 50 页 | 253.09 KB | 1 年前3Flask-RESTful Documentation Release 0.3.8
. . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3 Additional Notes 41 3.1 Running the Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Python response object Parameters resource – The resource as a flask view function owns_endpoint(endpoint) Tests if an endpoint name (not path) belongs to this Api. Takes in to account the Blueprint name part of Running the Tests A Makefile is included to take care of setting up a virtualenv for running tests. All you need to do is run: $ make test To change the Python version used to run the tests (default is0 码力 | 50 页 | 253.64 KB | 1 年前3Flask-RESTful Documentation Release 0.3.8
[http://flask.pocoo.org/docs/license/] for legal information governing this project. Running the Tests Installation Install Flask-RESTful with pip pip install flask-restful The development version return a response object resource – The resource as a flask view function owns_endpoint(endpoint) Tests if an endpoint name (not path) belongs to this Api. Takes in to account the Blueprint name part of Running the Tests A Makefile is included to take care of setting up a virtualenv for running tests. All you need to do is run: $ make test To change the Python version used to run the tests (default is0 码力 | 55 页 | 93.30 KB | 1 年前3Flask-RESTful Documentation Release 0.3.7
[http://flask.pocoo.org/docs/license/] for legal information governing this project. Running the Tests Installation Install Flask-RESTful with pip pip install flask-restful The development version return a response object resource – The resource as a flask view function owns_endpoint(endpoint) Tests if an endpoint name (not path) belongs to this Api. Takes in to account the Blueprint name part of Running the Tests A Makefile is included to take care of setting up a virtualenv for running tests. All you need to do is run: $ make test To change the Python version used to run the tests (default is0 码力 | 55 页 | 93.21 KB | 1 年前3Flask-RESTful Documentation Release 0.3.10
[http://flask.pocoo.org/docs/license/] for legal information governing this project. Running the Tests Installation Install Flask-RESTful with pip pip install flask-restful The development version Running the Tests A Makefile is included to take care of setting up a virtualenv for running tests. All you need to do is run: $ make test To change the Python version used to run the tests (default is make test-all Individual tests can be run using a command with the format: nosetests:ClassName.func_name Example: $ source env/bin/activate $ nosetests tests/test_reqparse.py:ReqParseTestCase 0 码力 | 42 页 | 84.60 KB | 1 年前3Flask-RESTful Documentation Release 0.3.10
. . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3 Additional Notes 31 3.1 Running the Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Python Running the Tests A Makefile is included to take care of setting up a virtualenv for running tests. All you need to do is run: $ make test To change the Python version used to run the tests (default is $ make test-all Individual tests can be run using a command with the format: nosetests:ClassName.func_name Example: $ source env/bin/activate $ nosetests tests/test_reqparse.py:ReqParseTestCase 0 码力 | 39 页 | 212.29 KB | 1 年前3
共 11 条
- 1
- 2