Re: sqlite DB missed DEFAULT parameter from table definition

2018-08-06 Thread Christophe Pettus
> On Aug 6, 2018, at 10:27, HEMENDRA SINGH HADA > 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

Re: sqlite DB missed DEFAULT parameter from table definition

2018-08-06 Thread HEMENDRA SINGH HADA
Than How can I achieve my Goal with sqlite and Django ?? Do you have any solution for that ?? On Monday, August 6, 2018 at 10:49:29 PM UTC+5:30, HEMENDRA SINGH HADA wrote: > > Hi Team, > > My application using sqlite DB and in my model table class, I have define > attributes like Below - > >

Re: sqlite DB missed DEFAULT parameter from table definition

2018-08-06 Thread Christophe Pettus
> On Aug 6, 2018, at 10:19, HEMENDRA SINGH HADA > wrote: > > If I am giving is_active field with default value True, Then why its not > showing in "is_active" bool NOT NULL. Django "default=" defaults are implemented in Django, not in the database. Django does not currently set database-l

sqlite DB missed DEFAULT parameter from table definition

2018-08-06 Thread HEMENDRA SINGH HADA
Hi Team, My application using sqlite DB and in my model table class, I have define attributes like Below - class MyUser(AbstractBaseUser): email = models.EmailField( verbose_name='email address', max_length=255, unique=True, ) date_of_birth = models.DateFiel