Command to notify about the next platform upgrade

Tabla de contenidos

In Athento there is a command to notify about the next platform upgrade “notify_users_new_upgrade”. This command is responsible for doing two things:

1. Create a “callout message” that users will be able to see from the platform indicating that there will be a new upgrade soon. This callout_message will last 2 days by default, but you can pass as a parameter to the command the number of days if you wanted a different figure like this:

python manage.py notify_users_new_upgrade --duration_days 5 #will last 5 days

 

2. Send an email to the emails of administrator users indicated in the Config property “instance_admin_emails”. To configure it, you must indicate the emails to which you want the notification to be sent separated by commas:

 If nothing is indicated, no email will be sent (but it will create the callout message).