我需要为每个访问者设置临时用户模型,其中访问者显然与 session 数据相关联。
我可能不知道,Django 是否支持将数据附加到匿名用户?
我目前知道的唯一方法是使用请求对象的 session 字典部分。
非常感谢您的帮助!
最佳答案
django-lazysignup
is a package designed to allow users to interact with a site as if they were authenticated users, but without signing up. At any time, they can convert their temporary user account to a real user account.
关于python - 创建临时用户帐户 - Django,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2480862/