-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
heroku+django+mysql: sslmode not supported. #107
Comments
Thank you very much ! |
We should definitely support this without a workaround. Is there a reason that |
I got this error: |
Same - I'm getting a KeyError whenever I try to do anything after using |
I got it fixed, don't add that code to the settings.py file, use your default database and you should be fine |
what do you mean by "use your default database"? |
thats funny. How when installing wooey I got the sslmode error, then when I added that line of code it fixed it, just to get the Options key error later when running ./manage.py addscript for wooey. Just delete and use the default database and back to normal workflow. |
To fix this error, just use
At the end of the line, No need adding
|
Thank you. |
not working for me |
this worked for me, thanks |
The problem appears to be more a matter of Fun question: how should we deal with this? Options include:
Thoughts anyone? |
I'm leaning towards the option 4 ("Remove the option, and get Postgres folks to add sslmode=require to their URL") as that's used in This would be a major version bump, but I'm thinking this plus the change from #114 (comment) in one go for that. |
fwiw it looks like |
maybe nothing needs to be specified for mysql? if at all, maybe
https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-using-ssl.html |
Any thoughts on this @mattseymour ? |
Based on docs: there's no 'sslmode' attribute. The following code gives me the exception:
'sslmode' is an invalid keyword argument
.This issue is possibly related to other backends like sqlite as well.
Workaround:
On settings.py after:
django_heroku.settings(locals())
add:
del DATABASES['default']['OPTIONS']['sslmode']
The text was updated successfully, but these errors were encountered: