摘要: models.py from django.contrib.auth.models import AbstractBaseUser,PermissionsMixin,BaseUserManager from shortuuidfield import ShortUUIDField from djan 阅读全文
posted @ 2020-03-04 17:30 ret 阅读(216) 评论(0) 推荐(0)
摘要: TEMPLATES = [ { 'DIRS': [os.path.join(BASE_DIR, 'front', 'templates')], 'OPTIONS': { 'builtins':[ 'django.templatetags.static' ] }, }, ] STATICFILES_D 阅读全文
posted @ 2020-03-04 10:49 ret 阅读(286) 评论(0) 推荐(0)
摘要: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } 阅读全文
posted @ 2020-03-04 10:46 ret 阅读(127) 评论(0) 推荐(0)