Celery v4.0.0 Documentationof your Redis database: app.conf.broker_url = 'redis://localhost:6379/0' Where the URL is in the format of: redis://:password@hostname:port/db_number all fields after the scheme are optional, and will port 6379, using database 0. If a Unix socket connection should be used, the URL needs to be in the format: redis+socket:///path/to/redis.sock Specifying a different database number when using a Unix socket broker URL: broker_url = 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ you must remember to include the “@” at the0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery 3.0 Documentationof your Redis database: app.conf.broker_url = 'redis://localhost:6379/0' Where the URL is in the format of: redis://:password@hostname:port/db_number all fields after the scheme are optional, and will port 6379, using database 0. If a Unix socket connection should be used, the URL needs to be in the format: redis+socket:///path/to/redis.sock Specifying a different database number when using a Unix socket broker URL: broker_url = 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ you must remember to include the “@” at the0 码力 | 2110 页 | 2.23 MB | 1 年前3
Flask-RESTful Documentation
Release 0.3.7abort_if_todo_doesnt_exist(todo_id): if todo_id not in TODOS: abort(404, message="Todo {} doesn't exist".format(todo_id)) parser = reqparse.RequestParser() parser.add_argument('task') # Todo # shows a single whatever objects (ORM models/custom classes/etc.) you want in your resource. fields also lets you format and filter the response so you don’t have to worry about exposing internal data structures. It’s keys are names of attributes or keys on the object to render, and whose values are a class that will format & return the value for that field. This example has three fields: two are String and one is a DateTime0 码力 | 50 页 | 253.09 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.8abort_if_todo_doesnt_exist(todo_id): if todo_id not in TODOS: abort(404, message="Todo {} doesn't exist".format(todo_id)) parser = reqparse.RequestParser() parser.add_argument('task') # Todo # shows a single whatever objects (ORM models/custom classes/etc.) you want in your resource. fields also lets you format and filter the response so you don’t have to worry about exposing internal data structures. It’s keys are names of attributes or keys on the object to render, and whose values are a class that will format & return the value for that field. This example has three fields: two are String and one is a DateTime0 码力 | 50 页 | 253.64 KB | 1 年前3
Celery v5.0.5 Documentationof your Redis database: app.conf.broker_url = 'redis://localhost:6379/0' Where the URL is in the format of: redis://:password@hostname:port/db_number all fields after the scheme are optional, and will port 6379, using database 0. If a Unix socket connection should be used, the URL needs to be in the format: redis+socket:///path/to/redis.sock Specifying a different database number when using a Unix socket broker URL: broker_url = 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ Please note that you must remember to include0 码力 | 2315 页 | 2.14 MB | 1 年前3
Celery v5.0.1 Documentationof your Redis database: app.conf.broker_url = 'redis://localhost:6379/0' Where the URL is in the format of: redis://:password@hostname:port/db_number all fields after the scheme are optional, and will port 6379, using database 0. If a Unix socket connection should be used, the URL needs to be in the format: redis+socket:///path/to/redis.sock Specifying a different database number when using a Unix socket broker URL: broker_url = 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ Please note that you must remember to include0 码力 | 2313 页 | 2.13 MB | 1 年前3
Celery v5.0.2 Documentationof your Redis database: app.conf.broker_url = 'redis://localhost:6379/0' Where the URL is in the format of: redis://:password@hostname:port/db_number all fields after the scheme are optional, and will port 6379, using database 0. If a Unix socket connection should be used, the URL needs to be in the format: redis+socket:///path/to/redis.sock Specifying a different database number when using a Unix socket broker URL: broker_url = 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ Please note that you must remember to include0 码力 | 2313 页 | 2.14 MB | 1 年前3
Flask-RESTful Documentation Release 0.3.8abort_if_todo_doesnt_exist(todo_id): if todo_id not in TODOS: abort(404, message="Todo {} doesn't exist".format(todo_id)) parser = reqparse.RequestParser() parser.add_argument('task') # Todo # shows a single whatever objects (ORM models/custom classes/etc.) you want in your resource. fields also lets you format and filter the response so you don’t have to worry about exposing internal data structures. It’s keys are names of attributes or keys on the object to render, and whose values are a class that will format & return the value for that field. This example has three fields: two are String and one is a DateTime0 码力 | 55 页 | 93.30 KB | 1 年前3
Flask-RESTful Documentation Release 0.3.7abort_if_todo_doesnt_exist(todo_id): if todo_id not in TODOS: abort(404, message="Todo {} doesn't exist".format(todo_id)) parser = reqparse.RequestParser() parser.add_argument('task') # Todo # shows a single whatever objects (ORM models/custom classes/etc.) you want in your resource. fields also lets you format and filter the response so you don’t have to worry about exposing internal data structures. It’s keys are names of attributes or keys on the object to render, and whose values are a class that will format & return the value for that field. This example has three fields: two are String and one is a DateTime0 码力 | 55 页 | 93.21 KB | 1 年前3
Celery v5.0.0 Documentationof your Redis database: app.conf.broker_url = 'redis://localhost:6379/0' Where the URL is in the format of: redis://:password@hostname:port/db_number all fields after the scheme are optional, and will port 6379, using database 0. If a Unix socket connection should be used, the URL needs to be in the format: redis+socket:///path/to/redis.sock Specifying a different database number when using a Unix socket broker URL: broker_url = 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ Please note that you must remember to include0 码力 | 2309 页 | 2.13 MB | 1 年前3
共 527 条
- 1
- 2
- 3
- 4
- 5
- 6
- 53













