【发布时间】:2015-09-01 15:04:08
【问题描述】:
我有一个集成了 allauth 的 Django (1.8) 项目。现在我想要一个自定义用户模型而不是 auth.user 模型(我知道它是可配置的,但我需要更多的灵活性)。当我按照 django-authtools 安装说明进行操作时,第一步是将以下行添加到 url-patterns,请参阅 https://django-authtools.readthedocs.org/en/latest/intro.html#installation
url(r'^accounts/', include('authtools.urls')),
但是,allauth 应用程序已采用此 URL 模式(按照其说明,请参阅 http://django-allauth.readthedocs.org/en/latest/installation.html ):
url(r'^accounts/', include('allauth.urls')),
那我应该怎么做呢?
【问题讨论】:
标签: django django-allauth django-custom-user