-from philo.models import Template
+from philo.models.pages import Template
load_template_source = Template.loader
from django.db import models
+from django.contrib.sites.models import Site
from django.http import HttpResponse, HttpResponseServerError, HttpResponseRedirect
from django.core.servers.basehttp import FileWrapper
from philo.models.base import InheritableTreeEntity
app_label = 'philo'
+# the following line enables the selection of a node as the root for a given django.contrib.sites Site object
+models.ForeignKey(Node, related_name='sites', null=True, blank=True).contribute_to_class(Site, 'root_node')
+
+
class MultiNode(Node):
accepts_subpath = True
from django.template.loader import get_template
from django.template.loader_tags import ExtendsNode, ConstantIncludeNode, IncludeNode
from django.http import HttpResponse
-from django.contrib.sites.models import Site
from philo.models.base import TreeModel, register_value_model
from philo.models.nodes import Node
from philo.utils import fattr
app_label = 'philo'
-# the following line enables the selection of a node as the root for a given django.contrib.sites Site object
-models.ForeignKey(Node, related_name='sites', null=True, blank=True).contribute_to_class(Site, 'root_node')
-
-
class Contentlet(models.Model):
page = models.ForeignKey(Page, related_name='contentlets')
name = models.CharField(max_length=255)