![]() ![]() ![]() Here, as you can see, everything is in correct format. This is the screen I get just before uploading the data. ![]() Why is the first row content of csv >'Tempo 407' creating an error of null? And why are rest of all the rows getting Null here? TruckID = models.IntegerField(blank=True)ĭisplay_name = models.CharField(max_length=150, blank=True) This is my model: class Truckdb(models.Model):Ĭategory = models.CharField(max_length=100, blank=True) The error I keep gettingġ:1: ERROR: null value in column "Name" violates not-null constraint Detail: Failing row contains (1, null, null, null, null, null, null, null, null, null, Tempo 407 1500). I checked the csv and the columns multiple times, but it keeps giving me the same error, without importing a single line. I just dumped the data of one of my database with 295 rows to a csv, and tried to import the same file, and it shows me an error. I have been using PostgreSQL for a while now, and I have connected my IDE P圜harm with my local PostgreSQL. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |