Re: Pre-loading static data into database table

2017-06-29 Thread Rich Shepard
On Thu, 29 Jun 2017, John Thomas wrote: 419 is not that many. I'd probably do that via a Python shell. import models.Cities for item in lists_of_lists_of_419 temp = Cities(city+name=item[0], county_name=item[1]) temp.save() John, I should have mentioned that the table does not currently exi

Re: Pre-loading static data into database table

2017-06-29 Thread John Thomas
Hi Rich, 419 is not that many. I'd probably do that via a Python shell. import models.Cities for item in lists_of_lists_of_419 temp = Cities(city+name=item[0], county_name=item[1]) temp.save() John Thomas 310-947-8572 On Thu, Jun 29, 2017 at 11:16 AM, Rich Shepard wrote: > Reading >

Pre-loading static data into database table

2017-06-29 Thread Rich Shepard
Reading tells me that runSQL allows arbitrary SQL to run on the database ... except for the postgres backend: "On most database backends (all but PostgreSQL), Django will split the SQL into