mirror of https://github.com/snachodog/mybuddy.git
1.3 KiB
1.3 KiB
Managing Users
Creating a User
Changing User Settings
Changing User Password
Creating a User from the Command Line
There are 2 ways you can create a user from the command line:
- Passing user's password as an argument:
python manage.py createuser --username <username> --password <password>
- Interactively setting user's password:
python manage.py createuser --username <username>
You will then be prompted to enter and confirm a password.
- If you want to make the user a staff, you can append the
--is-staff
argument:
python manage.py createuser --username <username> --is-staff
- Another argument you can use with this command is
--email
python manage.py createuser --username <username> --email <email>
- To get a list of supported commands:
python manage.py createuser --help