[Answered ]-Django : Transfer data to another view by a button

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

Leave a comment