예제 #1
0
    def ready(self):
        base.patch_django_for_autoescape()

        # This is because django apps is introduced
        # in django 1.7 but the support for multiple
        # engines is introduced in django 1.8. So
        # in django 1.7 we should initialize the global
        # jinja environment.
        if django.VERSION[:2] == (1, 7):
            base.setup()
예제 #2
0
파일: apps.py 프로젝트: tobych/django-jinja
    def ready(self):
        base.patch_django_for_autoescape()
        base.patch_django_setup_test_environment()

        if django.VERSION[:2] == (1, 7):
            base.setup()
예제 #3
0
파일: apps.py 프로젝트: amitu/django-jinja
    def ready(self):
        base.patch_django_for_autoescape()

        if django.VERSION[:2] == (1, 7):
            base.setup()