-2

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.

Vinayak
  • 37
  • 7

1 Answers1

0
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
Waqas Devolper
  • 323
  • 2
  • 10