ModelAdmin.change_form_tem
plate]. Your templates can extend the default templates. Let’s say you have “
region” as
an additional grouping field. For the change list template this might look like this:
For the _list.html" %}
{% block language_tabs %}
{# Here goes the
region mark-up #}
{% if
region_dropdown %}
...
{% endif %}
{{ html" %}
{% block search %}
{# Here goes the
region mark-up #}
{% if "
region" in cl.model_admin.extra_grouping_fields %}
Providing the required context
To
0 码力 |
518 页 |
1.66 MB
| 6 月前 3
io/iron_mq_python#configure] library for more info sqs To use Amazon SQS as a broker you need to provide the AWS region and credentials: # example SQS broker connection Q_CLUSTER = { 'name': 'SQSExample', 'workers': 4, 'timeout': 60, 'retry': 90, 'queue_limit': 100, 'bulk': 5, 'sqs': { 'aws_region': 'us-east-1', 'aws_access_key_id': 'ac-Idr.....YwflZBaaxI', 'aws_secret_access_key':
0 码力 |
53 页 |
512.86 KB
| 1 年前 3
the AWS region and credentials: # example SQS broker connection Q_CLUSTER = { 'name': 'SQSExample', 'workers': 4, 'timeout': 60, 'retry': 90, 'queue_limit': 100, 'bulk': 5, 'sqs': { 'aws_region': 'us-east-1'
0 码力 |
42 页 |
376.79 KB
| 1 年前 3
io/iron_mq_python#configure] library for more info sqs To use Amazon SQS as a broker you need to provide the AWS region and credentials: # example SQS broker connection Q_CLUSTER = { 'name': 'SQSExample', 'workers': 4, 'timeout': 60, 'retry': 90, 'queue_limit': 100, 'bulk': 5, 'sqs': { 'aws_region': 'us-east-1', 'aws_access_key_id': 'ac-Idr.....YwflZBaaxI', 'aws_secret_access_key':
0 码力 |
62 页 |
514.67 KB
| 1 年前 3
the AWS region and credentials: # example SQS broker connection Q_CLUSTER = { 'name': 'SQSExample', 'workers': 4, 'timeout': 60, 'retry': 90, 'queue_limit': 100, 'bulk': 5, 'sqs': { 'aws_region': 'us-east-1'
0 码力 |
50 页 |
397.77 KB
| 1 年前 3
the AWS region and credentials: # example SQS broker connection Q_CLUSTER = { 'name': 'SQSExample', 'workers': 4, 'timeout': 60, 'retry': 90, 'queue_limit': 100, 'bulk': 5, 'sqs': { 'aws_region': 'us-east-1'
0 码力 |
56 页 |
416.37 KB
| 1 年前 3
the AWS region and credentials: # example SQS broker connection Q_CLUSTER = { 'name': 'SQSExample', 'workers': 4, 'timeout': 60, 'retry': 90, 'queue_limit': 100, 'bulk': 5, 'sqs': { 'aws_region': 'us-east-1'
0 码力 |
54 页 |
412.45 KB
| 1 年前 3