How to seed Django project ? - insert a bunch of data into the project for initialization
问题 I'ved been developing in Django and was wondering if there is a way to seed data into the database in Django. In ruby on rails, I use seed.rb and then run "rake db:seed" in command line. Main reason I want to seed some data on statuses, types, etc for the project initialization. Is there something similar ? 回答1: Similar to Rails, we also have option to seed the database. It is done using management commands. In one of your apps, use the following folder structure <project>/<app>/management