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.
superuser. - The most powerful user with permissions to create, read, update and delete data in the Django admin, which includes model records and other users. staff. - A user marked as staff can access the Django admin.
Only one class of user exists in Django's authentication framework, i.e., 'superusers' or admin 'staff' users are just user objects with special attributes set, not different classes of user objects. The primary attributes of the default user are: username.
You can open the shell and user is_superuser to search for all the superusers through the console.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With