Created
October 27, 2015 06:41
-
-
Save mallyvai/c45bfbe652b9e0190cac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json, requests | |
from django.http import HttpResponse | |
from django.shortcuts import render_to_response, render | |
from django.http import JsonResponse, HttpResponse | |
def test_loop(request): | |
print "in my glorious infinite loop" | |
while True: | |
continue | |
return HttpResponse(json.dumps(['test_1', 'test_2'], indent=2), content_type='application/json') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment