How do you dynamically create a multi-form wizard in Django from the same form?

StackOverflow https://stackoverflow.com/questions/18768093

  •  28-06-2022
  •  | 
  •  

Вопрос

I am a new user of Django and looking for help in dynamically creating a wizard with the same form. An idea that come to mind is to create a method in the view which returns a list of forms and then pass this list in the url call, is this possible to do? If it is, I am looking for sample code to help me prototype this idea.

Это было полезно?

Решение

I don't know if there's a way to do this in the exact way you describe, but the django-formtools docs have a tutorial describing how to implement this use case.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top