0

我讀過一個可以使用allauth創建註冊表單,但它是否也支持Django文檔中描述的UserProfile模型?allauth是否支持UserProfile模型?

https://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users

+0

不熟悉allauth,但如果你發現它太受限制,你可能也有興趣在https://開頭的github的.com/pinax/Django的用戶帳戶。它一直在爲我工作,它絕對與UserProfile模型兼容。 – acjay

回答

1

你可以自由地提出了一個自定義的註冊表格,問他最喜歡的顏色的用戶,並存儲在一個項目的具體用戶配置請你。 allauth不會妨礙 這個標準的Django行爲。

看看這裏瞭解如何設置自定義註冊表單:

How to customize user profile when using django-allauth