How can I loaddata for default list of users, when I syncdb ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What I do.
Create users manually.
Do a
dumpdatafor theauth.userstable.After doing syncdb, do a
loaddatafor the dumped users.It’s not totally “automatic” because — in the long run — totally automatic is a terrible idea. Most
syncdboperations involve database changes that also require you preserve some legacy data, perhaps dropping tables, and doing other “schema migration” steps. Each time it involves something special. So “total automation” rarely works out well.