1π
β
IT has to be stored between views. The server is stateless. Options are in a browser cookie or in the DB, if you rule out putting it in the URL or in a GET parameter.
Django provides the session (via middleware) which can store things in either cookies or the DB depending on configuration. So use that ( request.session
)
π€nigel222
Source:stackexchange.com