擅长:python、mysql、java
<p>有很多不同的解决方案。
根据您的数据大小,您可以将数据存储在sessions对象、apps对象中,甚至可以打开一个小数据库,如sqlite或内存结构,如redis,就像这些家伙所做的那样:</p>
<p><a href="https://stackoverflow.com/questions/54265197/django-how-to-store-a-lot-of-data-between-requests-if-i-dont-have-a-database">Django: how to store a lot of data between requests if I don't have a database</a></p>
<p>以下是访问会话数据的入门指南:</p>
<p><a href="https://docs.djangoproject.com/en/3.0/topics/http/sessions/" rel="nofollow noreferrer">https://docs.djangoproject.com/en/3.0/topics/http/sessions/</a></p>