Python django.utils.simplejson() Examples
The following are 1
code examples of django.utils.simplejson().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
django.utils
, or try the search function
.
Example #1
Source File: utils.py From twitter-stock-recommendation with MIT License | 5 votes |
def import_simplejson(): try: import simplejson as json except ImportError: try: import json # Python 2.6+ except ImportError: try: # Google App Engine from django.utils import simplejson as json except ImportError: raise ImportError("Can't load a json library") return json