Commit 1c5c00a2 authored by Thomas Bohmbach, Jr's avatar Thomas Bohmbach, Jr
Browse files

Changed json import to work on Google App Engine

parent f54324c1
......@@ -7,9 +7,15 @@ from datetime import datetime
from . models import models
try:
import json
import json #Python >= 2.6
except ImportError:
import simplejson as json
try:
import simplejson as json #Python < 2.6
except ImportError:
try:
from django.utils import simplejson as json #Google App Engine
except ImportError:
raise ImportError, "Can't load a json library"
def parse_json(data, api):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment