Users¶
There are two ways to add users to your Django application: manually via the admin interface, or by enabling public self-registration.
Option 1: Add Users via the Django Admin¶
- Log in to the Django admin panel at
/admin/using a superuser account. - Navigate to Authentication and Authorization → Users.
- Click Add User in the top-right corner.
- Enter a username and password, then click Save.
- On the following screen, fill in any additional profile details (email, first/last name, permissions) and click Save again.
Option 2: Enable User Self-Registration¶
To allow users to register themselves, you can enable signups via an environment variable or directly in Django settings.
Via .env.prod¶
Add the following line to your .env.prod file:
Via Django Settings¶
Alternatively, set the flag directly in your settings.py:
Once enabled, a registration page will be available for new users to sign up without admin intervention.
Info
Signups will require an email server to be configured, otherwise users won't be able to verify their email. In case your admin account doesn't have an email configured, add one first.