Plugin for NEMO to allow users to complete online training even before they have a NEMO account
python -m install nemo-online-trainingin settings.py add to INSTALLED_APPS:
INSTALLED_APPS = [
'...',
'NEMO_online_training',
'...'
]Add online trainings in Administration -> Detailed administration -> Online trainings
For each training, you can optionally add an action to be performed when the user completes the training.
The following actions are available:
- extend the user's access expiration date (if the user is already a NEMO user):
- in the configuration, you can specify the number of days to extend the access expiration date by using
extend_by_days
- in the configuration, you can specify the number of days to extend the access expiration date by using
- remove the training_required flag from the user
- send an email
- in the configuration, you can specify the email subject, message and recipients by using
subject(django template syntax allowed),message(django template syntax allowed) andrecipients(list of email addresses oruserto send to the user) - in the subject and message, the following variables are available:
training_user: the user who is completing the trainingtraining: the training being completedrecord: the record of the training being completedaction: the action being performed (send email action)
- in the configuration, you can specify the email subject, message and recipients by using
Display options:
- set
NEMO_ONLINE_TRAINING_ADMIN_NAMEin settings.py to customize the admin section name. Default is "Online training" - set
NEMO_ONLINE_TRAINING_ADMIN_TRAINING_NAMEin settings.py to customize the training model admin name. Default is "Training" - set
NEMO_ONLINE_TRAINING_ADMIN_TRAINING_USER_NAMEin settings.py to customize the training user model admin name. Default is "Training User" - set
NEMO_ONLINE_TRAINING_ADMIN_TRAINING_RECORD_NAMEin settings.py to customize the training record model admin name. Default is "Training Record"
To run the tests:
python run_tests.py