Skip to content

Instantly share code, notes, and snippets.

@mallyvai
Created October 27, 2015 06:41
Show Gist options
  • Save mallyvai/c45bfbe652b9e0190cac to your computer and use it in GitHub Desktop.
Save mallyvai/c45bfbe652b9e0190cac to your computer and use it in GitHub Desktop.
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