You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the conference ends, we want to send each attendee their conference attendance certificate.
I have written a blog post on how to create a script for doing this. We need to adapt it to be sent through the web portal instead of as a script on my computer.
Differences from the blog post:
We use the Django send_email function instead of using GMail API
This can be implemented effectively using Django's management commands and Google Slides API.
Solution Approach
Django Management Command
Create a Django management command (send_certificates.py) that:
Fetches the attendee and volunteer lists from the database.
Determines the appropriate certificate (attendee vs. volunteer).
Uses the Google Slides API to create a certificate with dynamic name insertion.
Sends the certificate via Django’s send_mail function.
Google Slides API Integration
Retrieve the GSlide template ID.
Use the Google Slides API to duplicate the slide for each recipient.
Replace placeholders (like {{name}}) with attendee/volunteer names.
Export the slide as a PDF and attach it to the email.
Email Sending with Django
Configure Django’s EMAIL_BACKEND (SMTP or other email services).
Attach the generated PDF certificate and send the email.
Running the Command
Manually: python manage.py send_certificates
Sure perhaps start with thinking /designing how to send the certificate to the volunteer, because right now only the volunteer profile model is available.
You can start trying by creating your own Google slides as the base template and creating your own Google API credentials.
Other idea, in terms of user experience:
also upload the certificate to their user profile, in addition to sending them an email attachment. eg when they login to the portal profile, they can see the certificate from there so they can show it off.
add the "share" button from their portal profile page so they can post on social media
After the conference ends, we want to send each attendee their conference attendance certificate.
I have written a blog post on how to create a script for doing this. We need to adapt it to be sent through the web portal instead of as a script on my computer.
Differences from the blog post:
send_email
function instead of using GMail APIOther details:
The text was updated successfully, but these errors were encountered: