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()
def ready(self): base.patch_django_for_autoescape() base.patch_django_setup_test_environment() if django.VERSION[:2] == (1, 7): base.setup()
def ready(self): base.patch_django_for_autoescape()
def ready(self): base.patch_django_for_autoescape() if django.VERSION[:2] == (1, 7): base.setup()