Thursday, September 26, 2019

Re: regarding adding data into database using faker library


After fixing the error of django.setup() I ran the file but it is not working and also showing the error. I am sharing the screenshot of the program along with the error it is showing

On Wednesday, 25 September 2019 16:34:10 UTC+5:30, Sahil Sharma wrote:
So I was adding data into the user model that is create using faker library  but i am facing certain error

 my populatescript screenshot is inserted


here is my user model class

from django.db import models

# Create your models here.

class user(models.Model):
def __str__(self):

return self.emailid

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
To view this discussion on the web visit

No comments:

Post a Comment