Since we are using "as_view" @login_required cannot be used