Did you migrate? You don't have to manually edit your schema. Use migrations or south if you're using 1.6 or below. On 26 Jun 2015 8:41 am, "Sidh Tanna" <[email protected]> wrote:
> Its not work dear, ou have any other solution? > > On Monday, August 14, 2006 at 12:09:53 PM UTC+5:30, Bryan Chow wrote: >> >> Hi Ray, >> >> You can set null=True on your DateField to allow null values in the >> database. Foe example: >> >> thedate = models.DateField(null=True, blank=True) >> >> Cheers, >> Bryan >> >> >> On 8/13/06, Rares Vernica <[email protected]> wrote: >> > Hi, >> > >> > I have a DateField with blank=True and after I complete and submit the >> > form I get a Django error saying that DateField cannot be null? >> > >> > How can I set the DateField so that it can be empty, and eventually null >> > in the DB? >> > >> > I don't like the idea of manually going and changing the DB schema. >> > >> > Thanks, >> > Ray >> >> -- > 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 post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/639bee6b-be77-403d-ad12-5bb9bb00f259%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/639bee6b-be77-403d-ad12-5bb9bb00f259%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHqTbjk1g2Sn397Vgj%3DiPUoEFwZyP6irD%3DH3Mk86J6ntAJ7-%2Bg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

