I have finally got my admin part of my django site working.
I am now beginning the tedious part of manually entering the initial data into the database. Obviously, I want this to be a one time affair.
Can anyone sugge开发者_开发知识库st to me how I can create fixtures data from my manually entered data, so that I can reload the data (automatically?) when I do a manage.py syncdb ?
Use the dumpdata
management command.
python manage.py dumpdata yourappname > app_data.json
精彩评论