Async functions in Django views
问题 Is it possible to do something like this: def new_query(request,company_uuid,address_uuid,contact_uuid): mcompany = get_object_or_404(Company, uuid=company_uuid) if request.method == 'POST': # If the form has been submitted... form = forms.CompanyQueryForm(request.POST) if form.is_valid(): mquery = form.save(commit = False) mcompany = get_object_or_404(Company, uuid = company_uuid) mquery.company = mcompany mquery.version_number = 1 mquery.parameters = { 'company':company_uuid, 'address'