mysql Field ‘col1’ doesn’t have a default value

I had db schema defined as below CREATE TABLE `ATestTable` ( id bigint(20) NOT NULL AUTO_INCREMENT, refId varchar(32) NOT NULL, col1 text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_keyy_refId` (`refId`) ) ENGINE=InnoDB AUTO_INCREMENT=123 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; when I have something like this Insert into ATestTable (refId, col1) Values (‘abc’, ‘def’); I got…

Details

Getting this error can anyone please help

this is my adminpanel model class Society(models.Model): society_nme = models.CharField(max_length = 250, null = True) sector = models.CharField(max_length = 250, null = True) city = models.CharField(max_length = 250, null = True) state = models.CharField(max_length = 250, null = True) pincode= models.IntegerField() num_of_towers = models.IntegerField() class SocietyAdmin(models.Model): admin_name = models.CharField(max_length = 250) user_email = models.ForeignKey(MyUser,on_delete=models.CASCADE,related_name=’admin_email’) societyName…

Details

No pip3 in ubuntu 18.04?

Ubuntu server 18.04 LTS has problems recognising pip3 even though it is apparently pre-installed. the following commands do not work: ‘sudo apt-get update’ ‘sudo apt-get install python3-pip’ afterwards the command line returns the following error ‘pip3’ Traceback (most recent call last): File “/usr/bin/pip3”, line 7, in <module> from pip._internal.cli.main import main ModuleNotFoundError: No module named…

Details