Exemplo n.º 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())
Exemplo n.º 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())
Exemplo n.º 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')
Exemplo n.º 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')