Thursday, September 26, 2019

Re: regarding adding data into database using faker library

It seems you have an unfortunate typo in your environment variable name.

Change DJANGO_SETTING_MODULE -> DJANGO_SETTINGS_MODULE and try again.

On Thursday, 26 September 2019 16:26:18 UTC+2, Sahil Sharma wrote:

2019-09-26-1569507899_screenshot_1920x1080.jpg

I did the changes but it not working. I am sharing the screenshot of the program
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

2019-09-24-1569346732_screenshot_1920x1080.jpg

 
here is my user model class

from django.db import models

# Create your models here.

class user(models.Model):
firstname=models.CharField(max_length=250,unique=False)
lastname=models.CharField(max_length=250,unique=False)
emailid=models.CharField(max_length=500,unique=True)
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7a44d30-963d-4b6a-ba02-8cdf2c74d7a8%40googlegroups.com.

No comments:

Post a Comment