Beispiel #1
0
 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())
Beispiel #2
0
 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())
Beispiel #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')
Beispiel #4
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')