So I have a nice little database now stocked with items and provinces. I now want to generate random samurai and populate the database with them. I can think of two ways to do this:
1) Through the admin interface. But how do I install a button that will add a random samurai? Adding samurai is a built-in function on the template, but the fields are always empty. Is there a straightforward way to add another button called "Add Random Samurai" that does the same thing but with the fields randomly filled from appropriate choices? 2) Use a python script. This seems to have two possible methods: a) Randomly generate samurai desired, output a JSON flatpage, and call manage.py loaddata that_flatpage b) Randomly generate the samurai desired, access the database directly and insert them using SQL syntax. (not very Django like) I have listed these in order of preference. Can someone tell me the easiest way to implement a new admin button? I'm not even sure where the admin templates are stored. :/ -Tim -- 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.