pythondjangodjango-adminweb-development-serverdjango-admin-tools

Create student accounts using django admin


I want to be able to create student user accounts using django admin interface which can be used by students to log in on my website?

Any sort of help would be really appreciated.


Solution

  • class Student(models.Model):
        stu_name = models.CharField(_(""), max_length=50)
        stu_rolnumber = models.models.AutoField(primaryKey=true)
        stu_name = models.CharField(_(""), max_length=50)
        .
        .
        .
        .
        etc 
        stu_image =models.ImageField(_(""),  
       def __str__(self):
            return self.stu_rolnumber