Monday, August 6, 2018

Re: sqlite DB missed DEFAULT parameter from table definition

> On Aug 6, 2018, at 10:27, HEMENDRA SINGH HADA <hada.hemendra90@gmail.com> wrote:
>
> Than How can I achieve my Goal with sqlite and Django ??
> Do you have any solution for that ??

You'll need to either:

1. Add the default to the database using a migration, either using Django's migration framework and the RunSQL migration, or outside of Django, or,
2. Specify the value you want inserted when inserting directly using SQL.

--
-- Christophe Pettus
xof@thebuild.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 post to this group, send email to django-users@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/1D4890A9-0284-4E93-89A2-C699F3A788B6%40thebuild.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment