Redis 用法 简单说明ppt 初学者试用。 string: =============================================================================== SET name "John Doe" GET name 批量的读写操作 MSET age 30 sex "male" MGET age sex 存储数字 INCR age INCRBY age 4 GET age DECR age DECRBY age 4 GET age
TabularInline类用于在A页面上编辑B表的字段,举例说明,如果models.py中有Staff、Job两个model:
from django.db import models
class Staff(models.Model):
name = models.CharField(max_length=10)
class Job(models.Model):
staff = models.ForeignKey(Staff)
task = models.CharField(max_