Tuesday, February 25, 2020

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

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,

--
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+unsubscribe@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.

No comments:

Post a Comment