Settings
Note
If you're unsure about what "Django settings" are, you can refer to How to Edit Django Settings in OpenWISP for guidance.
OPENWISP_ORGANIZATION_USER_ADMIN
type: |
|
default: |
|
Indicates whether the admin section for managing OrganizationUser
items is enabled or not.
OPENWISP_ORGANIZATION_OWNER_ADMIN
type: |
|
default: |
|
Indicates whether the admin section for managing OrganizationOwner
items is enabled or not.
Refer to Organization Owners for more information.
OPENWISP_USERS_AUTH_API
type: |
|
default: |
|
Indicates whether the REST API is enabled or not.
OPENWISP_USERS_AUTH_THROTTLE_RATE
type: |
|
default: |
|
Indicates the rate throttling for the Obtain Authentication Token API endpoint.
Please note that the current rate throttler is very basic and will also count valid requests for rate limiting. For more information, check Django-rest-framework throttling guide.
OPENWISP_USERS_AUTH_BACKEND_AUTO_PREFIXES
type: |
|
default: |
|
A tuple or list of international prefixes which will be automatically tested by the authentication backend of OpenWISP Users when parsing phone numbers.
Each prefix will be prepended to the username string automatically and
parsed with the phonenumbers
library to find out if the result is a
valid number of not.
This allows users to log in by using only the national phone number, without having to specify the international prefix.
OPENWISP_USERS_EXPORT_USERS_COMMAND_CONFIG
type: |
|
default: |
|
This setting can be used to configure the exported fields for the export_users command.
The select_related
property can be used to optimize the database
query.
OPENWISP_USERS_USER_PASSWORD_EXPIRATION
type: |
|
default: |
|
Number of days after which a user's password will expire. In other words, it determines when users will be prompted to change their passwords.
If set to 0
, this feature is disabled, and users are not required to
change their passwords.
OPENWISP_USERS_STAFF_USER_PASSWORD_EXPIRATION
type: |
|
default: |
|
Similar to OPENWISP_USERS_USER_PASSWORD_EXPIRATION, but for staff users.