在我的django项目中,我为User及其经理类创建了自定义模型。
我将它们命名为 User (从|Loading Grails 2.4.0
|Configuring classpath
Error |
Resolve error obtaining dependencies: Failed to read artifact descriptor for xalan:serializer:jar:2.7.1 (Use --stacktrace to see the full trace)
Error |
Required Grails build dependencies were not found. This is normally due to internet connectivity issues (such as a misconfigured proxy) or missing repositories in grails-app/conf/BuildConfig.groovy. Please verify your configuration to continue.
Process finished with exit code 1
继承)和 UserManager (从AbstractUser
继承)。鉴于这些是这些模型的默认django名称,这有什么问题吗?
我运行以下形式的django shell:
BaseUserManager
这些是输出:
>>>from django.contrib.auth import get_user_model
>>>user = get_user_model()
>>>user.objects
显然没有显示冲突,所以似乎还可以。我希望一些django专家可以确认我,以后在开发过程中我不会感到惊讶。