On Mon, Mar 22, 2010 at 12:26 PM, Ivan Uemlianin <i...@llaisdy.com> wrote: > > 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?
It depends if you're going to be doing this more than once. If it's only once, then maybe a fixture is good enough. If you're going to be doing this more than once, and tweaking things over time then there's nothing wrong with a custom script. I chose the latter for my recent version of this dilemma, and I'm quite happy with it. You might be interested in custom management commands: * http://docs.djangoproject.com/en/1.1/howto/custom-management-commands/#howto-custom-management-commands -- Dave Murphy http://schwuk.com -- 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.