Django: Getting Started Transcripts
Chapter: Users and Account Management
Lecture: Create a user via the Admin

Login or purchase this course to watch this video and the rest of the course contents.
0:00 I'll start by visiting the admin page and logging in. Still using that super secure password
0:11 And now I can add a user by clicking the add link next to the user model line. Note that this is a variation on the usual create model form.
0:23 Not all the attributes of the user are included on this screen. User creation is done as a two step process. First create the user name and password,
0:33 then it goes to another page to fill in the other pieces. I'll just create a new user name and a password. You'll recall from creating the super
0:50 user on the command line in the previous chapter that you can get around the password restrictions when you're using a management command.
0:59 You can't do that here, so I'm actually using a validated password that follows all the rules that Django is currently enforcing.
1:08 If you're interested, you can look in to change what rules Django enforces for passwords. I'll just create the user by clicking save.
1:18 And now I'm on the second step in the process where I can fill in the rest of the user's object properties.
1:24 You've seen this before in the previous chapter, when I modified the admin user. Let me just add some personal information for bookie.
1:36 By default, this is an active account which is neither staff nor super user. That means the account can be used but can't log into the Django admin.
1:46 Now I'll scroll down to the bottom and save. I'm back on the change list page and now there are two users in the user listing.
1:56 Admin created in the previous chapter and Bookie created just now.

Talk Python's Mastodon Michael Kennedy's Mastodon