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())
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())
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')
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')