Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating superuser in django-nonrel

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.

like image 863
iali Avatar asked Jul 28 '10 12:07

iali


People also ask

Is superuser in Django?

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.

Can Django have multiple superusers?

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.

How do you check if there is a superuser in Django?

You can open the shell and user is_superuser to search for all the superusers through the console.


1 Answers

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.

like image 70
iali Avatar answered Sep 28 '22 17:09

iali