X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/943e8bc4af0c11b0ace3811199e3b0844c4c3fbc..46997a51ed0ceb16ddbac712fbcb552a86cdc9e2:/philo/models/__init__.py?ds=sidebyside diff --git a/philo/models/__init__.py b/philo/models/__init__.py index 523f789..3942b84 100644 --- a/philo/models/__init__.py +++ b/philo/models/__init__.py @@ -1,12 +1,20 @@ +from django.conf import settings +from django.contrib.auth.models import User, Group +from django.contrib.sites.models import Site + from philo.models.base import * from philo.models.collections import * from philo.models.nodes import * from philo.models.pages import * -from django.contrib.auth.models import User, Group -from django.contrib.sites.models import Site register_value_model(User) register_value_model(Group) register_value_model(Site) -register_templatetags('philo.templatetags.embed') \ No newline at end of file + +if 'philo' in settings.INSTALLED_APPS: + from django.template import add_to_builtins + add_to_builtins('philo.templatetags.embed') + add_to_builtins('philo.templatetags.containers') + add_to_builtins('philo.templatetags.collections') + add_to_builtins('philo.templatetags.nodes') \ No newline at end of file