如何使用 Django 1.5 创建新的自定义用户配置文件?我不清楚文档
例如我需要:
class StandardProfile(models.Model):
name = models.CharField(max_length=255) #or ForeignKey(User)
email = models.CharField(max_length=255) #or ForeignKey(User)
password = models.CharField(max_length=255) #or ForeignKey(User)
full_name = models.CharField(max_length=255)
something = models.CharField(max_length=255)
和
class ArtistProfile(models.Model):
name = models.CharField(max_length=255) #or ForeignKey(User)
email = models.CharField(max_length=255) #or ForeignKey(User)
password = models.CharField(max_length=255) #or ForeignKey(User)
full_name = models.CharField(max_length=255)
style = models.CharField(max_length=255)
music = models.CharField(max_length=255)
bank_account = models.CharField(max_length=255)
如何将此更改为新的用户自定义模型?
(我想用这个来验证用户:https ://docs.djangoproject.com/en/dev/topics/auth/ )