Admin

Control the admin UI.

The admin page is accessible via [site domain]/admin, or by clicking the admin item in the top right menu of the site.

Authentication and Authorization

Users

Create New User

Users are saved in the database. This means a user created in PROD will not automatically exist in DEV and vice versa.

New users can be managed and created in the Users section.

To add a new user, click the + Add button, then input a user name using the prefix of the user’s email address (e.g. john_wayne@lineverge.com => john_wayne), and password Temp12345.

Click on Save and continue editing, add the Personal Info including email...

The password manually added when creating a new user will be overwritten with a randomly generated password when Automail sends the onboarding email to the users. This is only the case if the user has an email address defined in the Personal Info section.

Automail sends emails to the users through a backend process that needs to be scheduled and uses the below generic function that references the constants EMAIL_USERNAME, EMAIL_USERNAME_SEND, EMAIL_SIGNATURE, PROXIES, SUPPORT_EMAIL_ADDRESS, COMPANY_NAME, APPLICATION_NAME_SHORT, ALLOWED_HOSTS, and DEBUG settings.py.

from _init import *
from polygon.apps.app_automail.functions import send_user_onboarding_email

if __name__ == "__main__":
    monitoring(
        send_user_onboarding_email,
        kwargs={"private_site": True, "log_file_path": log_file_path},
    )

Reset User Password

Click the User onboarding emails link.

Then select the target user(s) and click Reset password(s), then GO.

Automail will generate a new random password and send it to the user's registered email address.

Disable User

To make a user inactive, find the user under Users and uncheck the Active checkbox.

Groups

The idea of groups is to be used in allowed_user_groups ists in urls.py.

Groups are defined in the Groups section.

Once a group is defined, it can be assigned to a user in the User section by selecting a user.

Last updated