I am trying to get class name of Generic view like below
class TestView(TemplateView):
print self.__class__.__name__
But self is referring to app name rather TestView. My expected result is TestView.
Edit:
In the above code self does not work. Please refer comments. My requirement is to access TestView name.