![]() ![]() It seems that generating dumps in json is quite memory expensive. The cause was a lack of memory on my server. I once ran in a similar problem where the error message was as mesmerizing as yours. I really need to dump this data back out as JSON. ![]() I can't imagine the "DeprecationWarning" is going to be a problem here. But I'm still getting this error, three days on. I've triple checked the data, gone through to make sure all the relationships and data is ok after importing. `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,ĪLTER TABLE `gigs_gig` ADD CONSTRAINT `venue_id_refs_id_3d901b6d` FOREIGN KEY (`venue_id`) REFERENCES `gigs_venue` (`id`) ĪLTER TABLE `gigs_gig` ADD CONSTRAINT `location_id_refs_id_2f8d7a0` FOREIGN KEY (`location_id`) REFERENCES `gigs_location` (`id`) COMMIT When a run the command to get what SQL Django is using: $ python manage.py sql gigs ![]() The site works fine and the relationships seem to operate absolutely fine. Like I say, Django is fine with the data. Return u"%s on %s at %s" % (, self.date, ) Url = models.URLField(max_length=60, verify_exists=False, blank=True, null=True) # because of single thread problems, I left this off ()ĭate = models.DateField(blank=True, null=True)ĭetails = models.CharField(max_length=250, blank=True, null=True) ![]() Name = models.CharField(max_length=120, blank=True, null=True)Ĭontact = models.CharField(max_length=250, blank=True, null=True) My Django model for 'gigs' that I'm trying to dump from looks like this in the models.py file: from datetime import datetime usr/local/lib/python2.6/site-packages/MySQLdb/_init_.py:34: DeprecationWarning: the sets module is deprecatedĮrror: Unable to serialize database: Location matching query does not exist. But when I try and actually dump the data of the application that corresponds to the tables I get this error: $ python manage.py dumpdata -indent=2 gigs > fixtures/gigs_100914.json The website works fine and Django admin responds as normal. On the live server it's running MySQL Server version 5.0.77 and I imported a lot of data to my tables using the phpMyAdmin interface. I'm getting an error when I'm trying to dump data to a JSON fixture in Djanog 1.2.1 on my live server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |