I have 2 tables that I need to initialize with some initial sql files. One table has a foreign key reference into the other. The docs say "Note that if you have multiple SQL data files, there’s no guarantee of the order in which they’re executed." So what can I do here? I obviously need the table with the referenced data loaded first so I can pick up the ids when I load the referencing table? How is this situation (which seems like it would be fairly common) typlcally handled?
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY7si8kVqx3fqNRY%3DV%3DqPzGN1q-P2p5gfrc0a8UXps-OCQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.