使用auth examp的Django应用程序

2024-04-25 08:32:46 发布

您现在位置:Python中文网/ 问答频道 /正文

有人能指出一些Django项目使用内置的auth应用程序,这样我就可以查找源代码,了解什么是正确的使用方法。官方文档对django/python初学者不是很友好


Tags: 项目django方法文档auth应用程序官方源代码
1条回答
网友
1楼 · 发布于 2024-04-25 08:32:46

你可以使用这样的表达:

^(?=[abcd]*e)(?:([abcde])(?![abcde]*?\1)){2,5}$

一些评论:

^
(?=[abcd]*e)     # make sure there is an "e"
(?:
  ([abcde])      # match a character and capture it
  (?!            # make sure it's not repeated
    [abcde]*?
    \1           # reference to the previously matched char
  )
){2,5}
$

相关问题 更多 >