This commit is contained in:
chenyang
2022-06-29 08:18:58 +08:00
parent 16fbea9f1d
commit 553895477c
10 changed files with 84 additions and 5 deletions
+5 -1
View File
@@ -38,6 +38,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'rest_framework',
'server',
'server_auth',
'channels',
]
@@ -116,7 +117,7 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/
LANGUAGE_CODE = 'en-us'
LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'
@@ -138,3 +139,6 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# 静态文件目录
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),)
# AUTH_USER_MODEL为我们自定义的用户类
AUTH_USER_MODEL = "server_auth.MindUser"