浏览代码

...

master
jfinn 6 个月前
父节点
当前提交
0ad81ef25e
共有 2 个文件被更改,包括 18 次插入0 次删除
  1. 5
    0
      wsps/v_jnk.py
  2. 13
    0
      wsps/views.py

+ 5
- 0
wsps/v_jnk.py 查看文件

15
 
15
 
16
 
16
 
17
 
17
 
18
+
19
+
20
+
21
+
22
+

+ 13
- 0
wsps/views.py 查看文件

1
 from django.shortcuts import render
1
 from django.shortcuts import render
2
 from django.http import HttpResponse
2
 from django.http import HttpResponse
3
 
3
 
4
+
5
+# from wsps.tasks_loop import *
6
+
7
+# wsps.
8
+import tasks_loop
9
+glob_cl = tasks_loop.glob_cl
10
+# glob_cl.has_cl
11
+# glob_cl.acl
4
 # Create your views here.
12
 # Create your views here.
5
 def index(request):
13
 def index(request):
6
 	return HttpResponse("Hello World") 
14
 	return HttpResponse("Hello World") 
7
 
15
 
8
 
16
 
9
 def fn_v(request,*a,**kw):
17
 def fn_v(request,*a,**kw):
18
+	# glob_cl.acl
19
+	# if 
20
+	if (glob_cl.has_cl):
21
+		return HttpResponse("fn_v has_cl") 
10
 	return HttpResponse("fn_v") 
22
 	return HttpResponse("fn_v") 
23
+	return
11
 
24
 
12
 def fn_v0(request,*a,**kw):
25
 def fn_v0(request,*a,**kw):
13
 	return HttpResponse("fn_v0") 
26
 	return HttpResponse("fn_v0") 

正在加载...
取消
保存