User
objects are the core of the authentication system. They typically represent the people interacting with your site and are used to enable things like restricting access, registering user profiles, associating content with creators and so on. Only one class of user exists in Django's authentication framework, that is, 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
password
email
first_name
last_name
Create superusers using the createsuperuser
command:
python manage.py createsuperuser -username=joe [email protected]
You will be prompted for a password. After you enter one, the user will be created immediately. If you leave off the -username
or the -email
options, it will prompt you for those values.