Thursday, June 29, 2017

Re: Adding a lookup table

On Wed, 28 Jun 2017, Rich Shepard wrote:

> Yes, that's the way to do it. I wrote my first idea before realizing that
> two models/tables would be the way to go.

After further consideration I realized that a single model/table is the
way to go. Because each city needs to be associated with a county a separate
model/table of county names adds nothing useful.

Now I need to learn how django allows me to populate that table. The SQL
'INSERT INTO' statement can be appended to the CREATE TABLE command and both
read into the database using psql.

Thanks,

Rich

No comments:

Post a Comment