Thursday, February 3, 2011

Re: store superuser permamently


What do I have to do to avoid having to define a superuser each time?

you can dump the data of the auth app and than load it again.

s.th. like this:

./manage.py dumpdata --indent=4 auth  > fixtures/auth.json
./manage.py dumpdata --indent=4 sessions >  fixtures/sessions.json

you can do a manage.py syncdb —noinput so you will not be asked, if you want a superuser or not.

If you dump the sessions too you will stay logged in.

No comments:

Post a Comment