Django FormPreview - what for?

While browsing the Django documentation, I came across FormPreview .

The description says the following:

Django comes with an add-on form preview application that helps automate the following workflow:

"Render an HTML form, force a preview, then do something to the submission."

What is meant by "force a preview"? What would you use this function for an application?

+2


source to share


2 answers


To force the preview means users are forced to see the value they inserted into the form input fields before django actually stores it in the database.



One example is django's comment system , which forces users to take a look at the comment they wrote before django actually saves it to the databases. You will see that users are redirected to another page to view their comment and there is a submit button after that to actually save the comment.

+2


source


I think they mean (I'm using django, but I didn't know about it until now ..) that you can let people write, for example, in a text box, as I am doing right now. After the user submits it, the system will review it for the user and give him the opportunity to read and edit what he sent before it is sent back to the database entirely again.



+2


source







All Articles