Automatically create an admin user when running Django's ./manage.py syncdb

Posted by a paid nerd on Stack Overflow See other posts from Stack Overflow or by a paid nerd
Published on 2009-09-23T15:40:02Z Indexed on 2010/03/25 14:13 UTC
Read the original article Hit count: 510

Filed under:
|
|

My project is in early development. I frequently delete the database and run manage.py syncdb to set up my app from scratch.

Unfortunately, this always pops up:

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no):

Then you have supply a username, valid email adress and password. This is tedious. I'm getting tired of typing test\[email protected]\ntest\ntest\n.

How can I automatically skip this step and create a user programatically when running manage.py syncdb ?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-syncdb