as_view is the function(class method) which will connect my MyView class with its url . From django docs: classmethod as_view(**initkwargs) Returns a callable view that takes a request and returns a response: You just can’t use class-based views like you could in normal function-based views.