Explorar o código

修改USE_TZ配置2

locky %!s(int64=3) %!d(string=hai) anos
pai
achega
683d6104a2
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Ansjer/cn_config/test_settings.py

+ 3 - 1
Ansjer/cn_config/test_settings.py

@@ -138,7 +138,9 @@ TIME_ZONE = 'Asia/Shanghai'
 # TIME_ZONE = 'UTC'
 USE_I18N = True
 USE_L10N = True
-USE_TZ = True
+USE_TZ = False
+CELERY_ENABLE_UTC = False
+DJANGO_CELERY_BEAT_TZ_AWARE = False
 
 # 跨域增加忽略
 CORS_ALLOW_CREDENTIALS = True