python - Django workflow when modifying models frequently? -


As I usually do not design in front of my model in Django projects, I finally modify the model Much more and so my test database is being removed every time (because "syncdb" will never be changed automatically for you tables). Below is my workflow and I want to hear about you Any thoughts are welcome ..

  1. Modify the model.
  2. Delete test database
  3. Generate some test data via code.
  4. Goto 1

A second question about it .. If your workflow is like the above, how do you execute the step 4.? Do you manually generate test data or is there a proper hook point in the Django app, where you can inject test-data-generating-code on server startup? \

TIA.

step 2 & amp; 3 can be done in one step:

  manage.py reset appname  

Using step 4, I understand the most easily managed Goes


Comments