Merge "[Django 1.9] Do not use TemplateDoesNotExist from Django"

This commit is contained in:
Jenkins 2016-01-22 16:30:22 +00:00 committed by Gerrit Code Review
commit d4c7b8f813

View File

@ -19,7 +19,10 @@ import os
import django
from django.conf import settings
from django.template.base import TemplateDoesNotExist # noqa
if django.VERSION >= (1, 9):
from django.template.exceptions import TemplateDoesNotExist
else:
from django.template.base import TemplateDoesNotExist # noqa
if django.get_version() >= '1.8':
from django.template.engine import Engine