我尝试在瓶子框架中执行基本身份验证
def is_authenticated_user(user, password):
# This function is called to check if a username/password combination is valid
return username == 'nikos' and password == ******'
称之为:
^{pr2}$
我有困难使这个工作,我不明白为什么我得到错误的方法不允许。用户的静态文件发送方式也是正确的吗?在
Tags:
According to the documentation,
request.auth
是(user, password)
的元组。按如下方式检索用户名:相关问题 更多 >
编程相关推荐