Dear All I'd like to create a bunch of sample users for testing a django website. I was going down the road of using an initial_data fixture, but there seem to be a couple of problems with this:
- Can I supply partial data in initial_data, i.e. only auth.user info (at the moment, username and password, and it seems to require last login)? When I do this, syncdb persists in asking me for an admin user (even when the previously given admin user still works). - How should I specify the password field in the fixture? dumpdata outputs a hash. Do I need to write some script to generate hashes from given passwords? I'm now thinking a fixture might not be the right way to go: it might be better to have a little script to add users once syncdb is done. As well as allowing me to provide plain text passwords, I could easily add site-specific attributes when I need them (dave.favourite_colour = 'orange'; bob.online = True, etc). Is that second method just reinventing the fixture, or is it more appropriate here? Thanks and best wishes Ivan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.