Python Django成员资格/仪表板插件

Python Django成员资格/仪表板插件,python,django,django-admin,Python,Django,Django Admin,我想创建一个会员网站,用户可以登录到与管理面板分开的控制面板 在控制面板内,用户可以编辑其设置、查看统计信息和使用付费服务 我需要什么插件来建立这种网站 如何改进安全性和自动化工作流 从Django附带的基本用户模块开始。向用户添加更多设置时,必须创建另一个链接到基本用户模型的模型UserProfile class UserProfile(models.Model): user = models.OneToOneField(User) # The base User model take

我想创建一个会员网站,用户可以登录到与管理面板分开的控制面板

在控制面板内,用户可以编辑其设置、查看统计信息和使用付费服务

  • 我需要什么插件来建立这种网站
  • 如何改进安全性自动化工作流

  • 从Django附带的基本用户模块开始。向用户添加更多设置时,必须创建另一个链接到基本用户模型的模型UserProfile

    class UserProfile(models.Model):
        user = models.OneToOneField(User) # The base User model takes username, password and email
    
        # For the "paid services" you could use a boolean field and evaluate in your template
        premium = models.BooleanField()
    
        # Alternatively, a field that links to the services, which you'll have to include in your models.py
        account_type = models.ManyToManyField(Service)
    
    确保在项目的settings.py中已安装的_应用程序中有“django.contrib.auth”和“registration”,并在适合您的情况下使用这些应用程序

    为了安全起见,请检查