Hi Saikiran, On 13/11/2019 15.07, IT Technology bySaikiran wrote: > > # Create your models here. > class register(models.Model): > username=models.CharField(max_length=100) > password=models.CharField(max_length=100) > email=models.CharField(max_length=100) > fname=models.CharField(max_length=30) > lname=models.CharField(max_length=30) > user_regdate=models.DateTimeField() > You haven't provided any details on what you want to achieve, but it looks like you're trying to implement your own authentication system storing passwords in cleartext.
That's a horrible idea and probably the reason why you cannot make it work with Djangos authentication model. What exactly are you trying to achieve that cannot be done with the standard Django authentication model? Maybe look into customizing the user model: https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20191113163523.Horde.MJ_D5Enrw3el3ybgTo0oSz6%40cloud.stacktrace.dk.

