from django.http import Http404
from django.template.loader import get_template
from django.template import TemplateDoesNotExist
from absolute.menu.models import Menu


class BasicPublicView(TemplateView):
    model = Menu

def dispatch(self, request, *args, **kwargs):
    pass
How to check if a template exists in Django?