文档中的示例https://django-filter.readthedocs.org/en/latest/usage.html,我认为是基于函数的视图.我目前正在研究如何使用基于类的视图执行此操作.
def product_list(request):
f = ProductFilter(request.GET, queryset=Product.objects.all())
return render_to_response('my_app/template.html', {'filter': f})
Run Code Online (Sandbox Code Playgroud) 我正在尝试动态配置ansible我的EC2实例.我在查找如何查找我的RDS实例时遇到问题.我可以设置关键标签,但ansible ec2.py不会提取它们(https://github.com/ansible/ansible/issues/7564).有没有人有什么建议?
因此,例如,我想要一个RDS实例用于生产,升级和仅用于测试.