修复了影响生产环境的问题,在生产环境中成功运行

This commit is contained in:
2026-06-15 00:01:46 +08:00
parent a155dc9f33
commit 8b9dbcba6f
18 changed files with 207 additions and 53 deletions

View File

@@ -29,14 +29,14 @@ INSTALLED_APPS = [
'corsheaders',
'django_celery_results',
'celery',
'yonghu',
'dingdan',
'shangpin',
'peizhi',
'houtai',
'users',
'orders',
'products',
'config',
'backend',
'utils',
'shangdian',
'dengji',
'shop',
'rank',
]
MIDDLEWARE = [
@@ -131,7 +131,7 @@ AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend',
]
AUTH_USER_MODEL = 'yonghu.UserMain'
AUTH_USER_MODEL = 'users.UserMain'
# ==================== DRF 配置 ====================
REST_FRAMEWORK = {