Email and Django Q Configuration 📧¶
Email Configuration 📧¶
Proper email configuration is crucial for the sending email and for the appointment reminder functionality.
Add the following to your settings.py:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'your_smtp_host'
EMAIL_PORT = 587 # or 465 for EMAIL_USE_SSL
EMAIL_USE_TLS = True # or EMAIL_USE_SSL = True
EMAIL_HOST_USER = 'your_email@example.com'
EMAIL_HOST_PASSWORD = 'your_email_password'
# Optional: Set your website name for email footer
APPOINTMENT_WEBSITE_NAME = 'Your Website Name'
Note: Make sure to use environment variables or a secure method to store sensitive information like email passwords in production.
Django Q Configuration 📧¶
Django-Appointment uses Django Q for sending email reminders. This feature is optional but recommended for better performance and user experience.
Setting up Django Q¶
-
Install Django Q:
-
Add 'django_q' to INSTALLED_APPS in your settings.py:
-
Configure Django Q in your settings.py:
-
Start the Django Q cluster:
Note: If you choose not to use Django Q, email reminders will not be sent, but the rest of the application will function normally.