configuration - Django: Setting up database code tables (aka reference tables, domain tables)? -


Often times applications will require some database code tables (aka reference table or domain tables or lookup tables). Suppose I have a model category which has a status name with the area of ​​the name which can hold values:

  pending progressive  
< P> Where and at what point do I set this value in Django? To set up these values ​​in the database, once in operation. Sometimes, these values ​​can be added.

And I guess more generally, how do you start the model with data? For example, say I had a model to build a car and I want to start this list with a set of known values. How do i do this

Would you like to use it for


Comments