Answer the question
In order to leave comments, you need to log in
Own web interface: how to make a sequential chain of editing screens?
There is a web interface through which the user enters data.
If a data conflict occurs during input, you need to redirect to another screen (page) where this data needs to be edited.
How to do it better? Everything is simple for a normal application, but when the web interface is through a browser... And when there can be many users at the same time...
HTTP sessions came to my mind. But what's the easiest way to make them? Maybe there are some python libraries that simplify and automate work with sessions so as not to fence your base and command system?
Or without sessions it is somehow possible to make, easier?
Tell
Answer the question
In order to leave comments, you need to log in
An interesting problem. Why not just fail the form validation and get the user back?
If not, then the dumbest option is to put the data directly into the URL parameters when redirecting. But the most tricky and versatile thing I can think of is to keep something like Redis as a cache, throw data there and pass the entry id to the URL. Both methods will work with any system architecture and do not depend on either the language or the framework.
And so, Django supports sessions and is generally very convenient.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question