擅长:python、mysql、java
<p>默认情况下,Django的用户模型不支持Phone,您应该做的是扩展<code>BaseUserModel</code>以获得所需的详细信息</p>
<p>这是关于<a href="https://docs.djangoproject.com/en/3.2/topics/auth/customizing/" rel="nofollow noreferrer">how to extend django user model</a>官方文件的指南</p>