Creating superuser in django-nonrel

iali picture iali · Jul 28, 2010 · Viewed 7.8k times · Source

I'm a newbie been going through the django-nonrel tutorials and have set up django-nonrel inside of Google App Engine.

I am now trying to create a superuser using:

manage.py createsuperuser --username=joe [email protected]

I get

Unknown command: 'createsuperuser'
Type 'manage.py help' for usage

When I type manage.py help, I don't see createsuperuser listed.

Help.

Answer

iali picture iali · Jul 28, 2010

Solved this. For anyone else having the same problem, in order to get admin to work:

1) Ensure that django.contrib.auth is installed_apps section in your settings.py

2) Stop runserver, then createsuperuser using manage.py createsuperuser.
AFTER you've created the superuser, start runserver again.