class Smodel(models.Model):
eid=models.AutoField(primary_key=True) # eid=models.IntegerField(default=0) elogin = models.CharField(max_length=8) epassword= models.CharField(max_length=8) elikeDay=models.IntegerField(default=0) efollowPerDay=models.IntegerField(default=0)
#esession = models.TextField() class Meta: db_table = "saeed"
You are trying to add a non-nullable field 'elogin' to smodel without a default; we can't do that (the database needs something to populate existing rows).Please select a fix: 1) Provide a one-off default now (will be set on all existing rows with a null value for this column) 2) Quit, and let me add a default in models.pySelect an option:
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dee2a6de-49e9-45c4-8536-0bed15038bd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dee2a6de-49e9-45c4-8536-0bed15038bd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADNvQ1P1yGnosE7%3DLEaFsehLF3zLpWFgtgw_H560L%2BRkHjBiaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
blank=True