chenjunkai %!s(int64=5) %!d(string=hai) anos
pai
achega
f2639742cc
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      controller/index.py

+ 2 - 0
controller/index.py

@@ -16,6 +16,7 @@ import time
 import requests
 from django.views.generic import TemplateView
 from django.shortcuts import render_to_response
+from django.http import JsonResponse
 from object.ResObject import ResObject
 import subprocess
 from gevent.pool import Pool
@@ -117,6 +118,7 @@ class oa2TokenView(TemplateView):
             "expires_in": 3600,
             "refresh_token": refresh_token
         }
+        return JsonResponse(res_json)
         response = ResObject()
         return response.json(0, res=res_json)