Django Views Query -
i have view in data form , use run python script within view. python script gives output , needs prompt user proceed further , perform other functionality.
how can in single view ??
my views.py
class deploywizard(sessionwizardview): template = "deploy_form.html" def done(self, form_list, **kwargs) : form_data = process_form_data(form_list) #process data form form #call script of the form data argument # display output user , ask user proceed (something "yes", "no") , proceed further # again call python script other arguments return rendor_to_response("done.html", {'form_data' : form_data})
i think should use either django's form wizard or form preview depending on precise use case.
the former if need classic multi-step wizard, latter if need user confirm input.
Comments
Post a Comment