Prerequisites:
* Python 2.5.4+ <http://www.python.org/>
- * simplejson <http://code.google.com/p/simplejson/> (Not required with Python 2.6+)
* Django 1.1.1+ <http://www.djangoproject.com/>
* (Optional) django-grappelli 2.0+ <http://code.google.com/p/django-grappelli/>
from django.utils.safestring import mark_safe
from django.utils.html import escape
from django.utils.text import truncate_words
-from models import *
+from philo.models import *
class AttributeInline(generic.GenericTabularInline):
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.contrib.sites.models import Site
-from utils import fattr
+from philo.utils import fattr
from django.template import add_to_builtins as register_templatetags
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 philo.templatetags.containers import ContainerNode
from django.template.loader_tags import ExtendsNode, ConstantIncludeNode, IncludeNode
from django.template.loader import get_template
from django.http import Http404, HttpResponse, HttpResponseServerError, HttpResponseRedirect
from django.http import Http404, HttpResponse
from django.template import RequestContext
from django.contrib.sites.models import Site
-from models import Node
+from philo.models import Node
def node_view(request, path=None, **kwargs):