diff --git a/sapl/base/views.py b/sapl/base/views.py index 7c80dcbc3..8bf64b8e9 100644 --- a/sapl/base/views.py +++ b/sapl/base/views.py @@ -7,12 +7,13 @@ from django.core.exceptions import ObjectDoesNotExist from django.core.mail import send_mail from django.core.urlresolvers import reverse from django.db.models import Count -from django.http import HttpResponseRedirect +from django.http import HttpResponseRedirect, Http404 from django.utils.encoding import force_bytes from django.utils.http import urlsafe_base64_decode, urlsafe_base64_encode from django.utils.translation import ugettext_lazy as _ from django.views.generic.base import TemplateView from django_filters.views import FilterView +from django.template import TemplateDoesNotExist from django.template.loader import get_template from haystack.views import SearchView