Files
edx-platform/lms/djangoapps/heartbeat/views.py
2012-07-23 14:44:40 -04:00

14 lines
314 B
Python

import json
from datetime import datetime
from django.http import HttpResponse
def heartbeat(request):
"""
Simple view that a loadbalancer can check to verify that the app is up
"""
output = {
'date': datetime.now().isoformat()
}
return HttpResponse(json.dumps(output, indent=4))