Is it possible to change the form action url depending on the choice user selects. Let's say he wants to create a dictionary. If he selects the choice that he wants to map the term to an existing dictionary word then go to url X else he wants to create a new term go to url Y.
The second part is if in case he wants to map the term with existing dictionary word then there can be another form with term suggestions. SO there should be nested form structure.
您可以转到一个视图,执行一些逻辑,然后重定向到另一个视图,如下所示: https : //docs.djangoproject.com/en/dev/topics/http/shortcuts/#redirect
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.