To do this, you'd need to use a means to store data about the user that persists between website visits, which is generally referred to as a session
. In this particular case, it sounds like the users might not be logged in, which is referred to more specifically as an anonymous session
.
There are a number of options available to you for storing anonymous sessions. The quickest and easiest would be using cookies, but other options include file-based sessions, Html5 storage, or databases.
From what you've written, I'd say that cookies are probably the best solution for you.
And, as you might expect, Django has built in functionality to ease working with cookies. I suggest looking into the documentation on Django sessions, which I find to be really accessible and easy to learn from, to see how to implement this.
If you have any more specific questions about using cookies (or anonymous sessions) in Django, just let me know and I'll try to help.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…