'ssl_disabled' is an invalid keyword argument for connect()

2,786 views
Skip to first unread message

Stephen Loughin

unread,
Feb 25, 2020, 5:55:29 PM2/25/20
to django...@googlegroups.com
The django docs say I can pass OPTIONS for the db connection here:
DATABASES = {

'default': {
'ENGINE': 'django.db.backends.mysql',
'OPTIONS': {
'ssl_disabled': 'True',
},
'NAME': 'somedatabase',
'USER': 'someuser',
'PASSWORD': 'somepassword',
'HOST': '10.0.0.1',
'PORT': '3306',
}
Yet when I try python manage.py runserver I get this:

TypeError: 'ssl_disabled' is an invalid keyword argument for connect()


I have also tried 'ssl_disabled': True,  # that is an actual boolean rather than string...
Same result.  Running django 3 and python 3.7.4 

Thanks,

Juan Pablo Romero Bernal

unread,
Feb 25, 2020, 8:14:02 PM2/25/20
to django...@googlegroups.com
Hi Steve,

The supported option is ssl, see:


I hope this helps,

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHM1-MAfUCJtZG5%2B5bOMO_bzYr6E8J%2BO28YNxXPZD4MZNyj5eg%40mail.gmail.com.


--
Juan 

Integr@te System

unread,
Feb 26, 2020, 2:08:55 AM2/26/20
to django...@googlegroups.com
Hi Steve,

Plz review again to take a right parameter.
Welcome.


Naveen Arora

unread,
Feb 26, 2020, 2:30:45 AM2/26/20
to Django users
Hi sir,

Kindly use this as below,

        'OPTIONS': {
            'ssl' : {
                'ssl_disabled': True
            }
        }
Cheers,
Naveen Arora
Reply all
Reply to author
Forward
0 new messages