标签:flask-login

  • AttributeError:'AnonymousUserMixin'对象没有属性'can' - python

    时间:2020-8-3

    烧瓶学习问题 为了定制对匿名用户的要求,我在模型中设置了一个类: class MyAnonymousUser(AnonymousUserMixin): def can(self, permissions): return False def is_administrator(self): return False login_manager.anonymou […]