-0b6e9b76975cf60e573a3260eed5157d9c8b5d28L12">12
-
13
-
14 10
 # 最新 APP 相关
15 11
 
16 12
 

+ 1 - 5
utils/redis/rprofile.py

@@ -2,14 +2,10 @@
2 2
 
3 3
 import json
4 4
 
5
-from django.conf import settings
6
-
5
+from utils.redis.connect import r
7 6
 from utils.redis.rkeys import PROFILE_INFO
8 7
 
9 8
 
10
-r = settings.REDIS_CACHE
11
-
12
-
13 9
 # 用户相关
14 10
 
15 11
 

+ 1 - 5
utils/redis/rsettings.py

@@ -2,15 +2,11 @@
2 2
 
3 3
 import json
4 4
 
5
-from django.conf import settings
6
-
7 5
 from pai2.basemodels import PlatformMixin
6
+from utils.redis.connect import r
8 7
 from utils.redis.rkeys import APP_SETTINGS_INFO
9 8
 
10 9
 
11
-r = settings.REDIS_CACHE
12
-
13
-
14 10
 def set_app_settings_info(appset):
15 11
     """ 设置 APP 设置信息 """
16 12
     r.set(APP_SETTINGS_INFO % (appset.platform, appset.channel, appset.version), json.dumps(appset.data))

+ 1 - 5
utils/redis/rtourguide.py

@@ -1,13 +1,9 @@
1 1
 # -*- coding: utf-8 -*-
2 2
 
3
-from django.conf import settings
4
-
3
+from utils.redis.connect import r
5 4
 from utils.redis.rkeys import TOUR_GUIDE_GROUP_USER_OWN
6 5
 
7 6
 
8
-r = settings.REDIS_CACHE
9
-
10
-
11 7
 # 导游相关
12 8
 
13 9
 

+ 1 - 5
utils/redis/rtouruser.py

@@ -1,13 +1,9 @@
1 1
 # -*- coding: utf-8 -*-
2 2
 
3
-from django.conf import settings
4
-
3
+from utils.redis.connect import r
5 4
 from utils.redis.rkeys import TOUR_GUIDE_GROUP_USER_BELONG
6 5
 
7 6
 
8
-r = settings.REDIS_CACHE
9
-
10
-
11 7
 # 旅行团成员相关
12 8
 
13 9
 

+ 1 - 4
utils/redis/ruuid.py

@@ -1,15 +1,12 @@
1 1
 # -*- coding: utf-8 -*-
2 2
 
3 3
 from curtail_uuid import CurtailUUID
4
-from django.conf import settings
5 4
 
6 5
 from photo.models import UUIDInfo
6
+from utils.redis.connect import r
7 7
 from utils.redis.rkeys import UUID_LIST
8 8
 
9 9
 
10
-r = settings.REDIS_CACHE
11
-
12
-
13 10
 def generate_uuid():
14 11
     uuid = CurtailUUID.uuid(UUIDInfo)
15 12
     UUIDInfo.objects.create(uuid=uuid)

kodo - Gogs: Go Git Service

暫無描述

Brightcells: 4547c709bf Add api get_server_time_api 9 年之前
..
__init__.py 4547c709bf Add api get_server_time_api 9 年之前
kodo - Gogs: Go Git Service

Nessuna descrizione

FFIB: 189368f5ed filefield 增加max_length 3 anni fa
..
migrations 189368f5ed filefield 增加max_length 3 anni fa
__init__.py 627187a7d7 Update Kodo 8 anni fa
admin.py eb3484e6c2 后台管理去掉只读 5 anni fa
models.py 189368f5ed filefield 增加max_length 3 anni fa
tests.py 627187a7d7 Update Kodo 8 anni fa
views.py 627187a7d7 Update Kodo 8 anni fa