Exemplo n.º 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()
Exemplo n.º 2
0
    def ready(self):
        base.patch_django_for_autoescape()
        base.patch_django_setup_test_environment()

        if django.VERSION[:2] == (1, 7):
            base.setup()
Exemplo n.º 3
0
 def ready(self):
     base.patch_django_for_autoescape()
Exemplo n.º 4
0
    def ready(self):
        base.patch_django_for_autoescape()

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