修复了影响生产环境的问题,在生产环境中成功运行
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -10,20 +10,20 @@ urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
|
||||
# 用户相关路由
|
||||
path('yonghu/', include('yonghu.urls')),
|
||||
path('yonghu/', include('users.urls')),
|
||||
|
||||
# 订单相关路由
|
||||
path('dingdan/', include('dingdan.urls')),
|
||||
path('dingdan/', include('orders.urls')),
|
||||
|
||||
# 商品/陪玩服务相关路由
|
||||
path('shangpin/', include('shangpin.urls')),
|
||||
path('shangpin/', include('products.urls')),
|
||||
|
||||
|
||||
# 配置相关路由(系统配置)
|
||||
path('peizhi/', include('peizhi.urls')),
|
||||
path('houtai/', include('houtai.urls')),
|
||||
path('shangdian/', include('shangdian.urls')),
|
||||
path('dengji/', include('dengji.urls')),
|
||||
path('peizhi/', include('config.urls')),
|
||||
path('houtai/', include('backend.urls')),
|
||||
path('shangdian/', include('shop.urls')),
|
||||
path('dengji/', include('rank.urls')),
|
||||
]
|
||||
|
||||
# 重要说明:
|
||||
|
||||
Reference in New Issue
Block a user