数据库配置
# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
models.py里面
一张表对应一个class
标签:01,04,db,2023,sqlite3,程序设计 From: https://www.cnblogs.com/chucklu/p/17278168.html