Hi sir, Kindly use this as below,
'OPTIONS': { 'ssl' : { 'ssl_disabled': True } } Cheers, Naveen Arora On Wednesday, 26 February 2020 04:25:29 UTC+5:30, Stephen Loughin wrote: > > The django doc > <https://docs.djangoproject.com/en/3.0/ref/databases/#mysql-notes>s 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, > -- Steve > slou...@gmail.com <javascript:> > > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2dbfa0b2-6e91-4a21-89d6-f8adb5383ceb%40googlegroups.com.