These are chat archives for django/django

10th
Apr 2018
Daníel Örn Árnason
@danielarnason
Apr 10 2018 11:48
Anyone here seasoned in setting up a django, gunicorn, nginx (to serve media files) with docker-compose?
I'm having some trouble inserting a nginx into my docker-compose
Rafa Huelin
@rafahuelin
Apr 10 2018 13:57

Hi @iammiracle , try deleting this lines:

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
DEFAULT_FROM_EMAIL = ''
SERVER_EMAIL = ''

From SendGrid site:

EMAIL_HOST = 'smtp.sendgrid.net'
EMAIL_HOST_USER = 'sendgrid_username'
EMAIL_HOST_PASSWORD = 'sendgrid_password'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
Miracle Ayodele
@iammiracle
Apr 10 2018 14:17
@rafahuelin yeah thanks, i tried that, i even noticed the page keeps loading till it throws up connection error
Rafa Huelin
@rafahuelin
Apr 10 2018 14:31
@iammiracle I´ve never used sendgrid but for gmail is working with only those 5 fields
Miracle Ayodele
@iammiracle
Apr 10 2018 14:33
when last did you use the gmail
because its not working, i once used it, but now, its no longer working
Rafa Huelin
@rafahuelin
Apr 10 2018 14:39
you have to setup gmail letting less secure apps to access to your account
you'll see that it works fine :)
Miracle Ayodele
@iammiracle
Apr 10 2018 14:40
:smile: i did o. let me try again :worried:
Rafa Huelin
@rafahuelin
Apr 10 2018 16:11
Kaushal Kumar
@kaushal087
Apr 10 2018 18:08
Hi, How can I use custom permission with social-auth-app-django. In my case I want to ask google drive permission from user.
Kaushal Kumar
@kaushal087
Apr 10 2018 18:30
How can I add scope in python social auth