From 4bee7bd524767dbe06de88b0c17632da324bcf8c Mon Sep 17 00:00:00 2001 From: Joseph Spiros Date: Sun, 13 Jun 2010 22:52:16 -0400 Subject: [PATCH] Removing dependency on standalone simplejson by using the version included with Django in django.utils. --- README | 1 - models.py | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/README b/README index 82333d6..4170400 100644 --- a/README +++ b/README @@ -2,7 +2,6 @@ Philo is a foundation for developing web content management systems. Prerequisites: * Python 2.5.4+ - * simplejson (Not required with Python 2.6+) * Django 1.1.1+ * (Optional) django-grappelli 2.0+ diff --git a/models.py b/models.py index eb6ebc0..bf11cb5 100644 --- a/models.py +++ b/models.py @@ -11,10 +11,7 @@ from django.template import Template as DjangoTemplate from django.template import TemplateDoesNotExist from django.template import Context, RequestContext from django.core.exceptions import ObjectDoesNotExist -try: - import json -except ImportError: - import simplejson as json +from django.utils import simplejson as json from UserDict import DictMixin from templatetags.containers import ContainerNode from django.template.loader_tags import ExtendsNode, ConstantIncludeNode, IncludeNode -- 2.20.1