Skip to content

Commit 59a24b7

Browse files
committed
Added necessary configuration in settings
1 parent d961970 commit 59a24b7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

appointments/settings.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"django.contrib.messages",
4040
"django.contrib.staticfiles",
4141
'appointment.apps.AppointmentConfig',
42+
'django_q',
4243
]
4344

4445
MIDDLEWARE = [
@@ -131,3 +132,28 @@
131132
('es', _('Spanish')),
132133
('fr', _('French')),
133134
)
135+
136+
# Email settings
137+
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
138+
EMAIL_HOST = 'smtp.gmail.com'
139+
EMAIL_PORT = 587
140+
EMAIL_HOST_USER = "[email protected]"
141+
EMAIL_HOST_PASSWORD = "very-insecure-password"
142+
EMAIL_USE_TLS = True
143+
EMAIL_SUBJECT_PREFIX = ""
144+
EMAIL_USE_LOCALTIME = True
145+
SERVER_EMAIL = EMAIL_HOST_USER
146+
147+
ADMINS = [
148+
('Adams', "[email protected]"),
149+
]
150+
151+
Q_CLUSTER = {
152+
'name': 'DjangORM',
153+
'workers': 4,
154+
'timeout': 90,
155+
'retry': 120,
156+
'queue_limit': 50,
157+
'bulk': 10,
158+
'orm': 'default',
159+
}

0 commit comments

Comments
 (0)