コード例 #1
0
ファイル: views.py プロジェクト: Tharon-C/troposphere
 def list(self, request, *args, **kwargs):
     """
     This request will retrieve Atmosphere's version,
     including the latest update to the code base and the date the
     update was written.
     """
     return Response(get_version())
コード例 #2
0
ファイル: views.py プロジェクト: xuhang57/GUI-Frontend
 def list(self, request, *args, **kwargs):
     """
     This request will retrieve Atmosphere's version,
     including the latest update to the code base and the date the
     update was written.
     """
     return Response(get_version())
コード例 #3
0
def version(request):
    v = get_version()
    v["commit_date"] = v["commit_date"].isoformat()
    v_json = json.dumps(v)
    return HttpResponse(v_json, content_type='application/json')
コード例 #4
0
ファイル: app.py プロジェクト: Tharon-C/troposphere
def version(request):
    v = get_version()
    v["commit_date"] = v["commit_date"].isoformat()
    v_json = json.dumps(v)
    return HttpResponse(v_json, content_type='application/json')