mybuddy/docs/user-guide/managing-users.md

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:

  1. Passing user's password as an argument:
python manage.py createuser --username <username> --password <password>
  1. 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