auto generate "dummy" content (e.g. Lorem ipsum generator for Django)

219 views
Skip to first unread message

Brad Buran

unread,
Apr 23, 2010, 3:41:02 PM4/23/10
to django...@googlegroups.com
Is there any easy way of generating dummy content for models in Django?  As I'm learning how to use Django, I often find myself deleting the sqlite database and running syncdb each time (rather than dealing with the issues of manual schema migration each time I make a change to my models).  As part of this, I'd like to regenerate some dummy content so I can test the various views and templates quickly.  It seems pretty straightforward: the model.*Fields can give the necessary clues as to the content that can be generated.  Before I start writing this, I thought I'd check to see if anyone has done something similar.  I tried searching for a similar app, but couldn't find anything.

Brad

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Skylar Saveland

unread,
Apr 23, 2010, 3:43:31 PM4/23/10
to Django users

Leo

unread,
Apr 25, 2010, 9:42:56 AM4/25/10
to Django users
Of course, a couple other things to look at that might save you from
needing to regenerate the content:

Fixtures: http://docs.djangoproject.com/en/dev/howto/initial-data/
South: http://south.aeracode.org/

I just started using south, and it really cleans up the database
schema change workflow.

Leo
Reply all
Reply to author
Forward
0 new messages