Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.views.decorators.csrf import csrf_exempt
- import json
- @csrf_exempt
- def test_json(request):
- json_data=open('test.json')
- properties = json.load(json_data)
- json_data.close()
- return HttpResponse(json.dumps(properties), content_type = "application/json")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement