web applications - Sending user to a page created based on their POST request in Django -


I have a form in which the user selects some item to display on "the following page". This selection is always unique, and we will store each set of selections used in a model, which is indexed by id , as is the equivalent of the Django model. When the user selects their choice and selects POST s using the submit button, then I want to store it in the model, and then with the model ID To present the page so that the user goes for example, the user goes to / coolapp / selectprefs / .

Done and record created, record id of 42 .

I do not understand how to send the user the "following page" as a response (e.g., / coolapp / selects / 42 above example) He clicks on the submit button to take a user to the page of a specific ID, based on what he has entered, a normal task (that is, when I click on the button to submit this question to the SO ), But I'm not sure That's how I do it, and appreciate your advice.

Return to your view that handles the mail.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -