Which databases are you using?
On Tue, 24 Sep 2019, 23:31 RONAK JAIN, <jainronak877@gmail.com> wrote:
Hi Sahil,please go to settings.py.put this in top of settings.py this will configure Django for youimport os os.environ.setdefault("DJANGO_SETTINGS_MODULE", __file__) import django django.setup()
Thanks & RegardsRJ--On Tue, Sep 24, 2019 at 11:23 PM Sahil Sharma <sahilsharma2471@gmail.com> wrote:--I was running a populate script to fill data in my database but facing some errorsharing the screenshotuser is a class create in the models.py which contain three fieldsclass 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/c1be492e-05fc-4b5b-997b-0061b02fa126%40googlegroups.com.
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/CA%2BAqMUfkWUJpPSoizAYCcR50TGnvDDWzH0S2R5K5BPLbjBkc6Q%40mail.gmail.com.
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/CAJ0m4xhPTi0qbULHOMtLY1-pGRckMpK%2B1SecS935MajBLNC%2BXA%40mail.gmail.com.
No comments:
Post a Comment