一.Cookie,Session,Token简介 # 这三者都解决了HTTP协议无状态的问题 session ID or session token is a piece of data that is used in network communications (often over HTTP) to identify a session, a series of related message exchanges. Session identifiers become necessary…
免费课程相关表设计 models的设计 from django.contrib.contenttypes.fields import GenericRelation class Course(models.Model): name = models.CharField(verbose_name="课程名", max_length=32) title = models.CharField(verbose_name="课程简介", max_length=128, nul…