I've got some start up code that drops tables, creates them and
populates with some test data. I needed a place to initiate this so
I've put it into my model.py source file and used something akin to a
singleton pattern to make sure it just happens once.
What I'm seeing is that most of the time the code is actually running
twice. You can see it by just putting a 'print' inside model.py and
starting up.
Any explanation for this?
Alternatively, where's a good insertion point to put start up code into
the framework?