You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

views.py 732B

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