question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

heroku+django+mysql: sslmode not supported.

See original GitHub issue

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']

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:37
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
AminuIsraelcommented, Oct 3, 2019

I got this error: del DATABASES[‘default’][‘OPTIONS’][‘sslmode’] KeyError: ‘OPTIONS’

3reactions
marcpozzicommented, Aug 9, 2018

Thank you very much !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - heroku+django+mysql: sslmode not supported. -
Based on docs: there's no 'sslmode' attribute. The following code gives me the exception: 'sslmode' is an invalid keyword argument .
Read more >
heroku+django+mysql: sslmode not supported. · Issue #107
The following code gives me the exception: 'sslmode' is an invalid keyword argument . This issue is possibly related to other backends like...
Read more >
asp.net core error - Keyword not supported: 'sslmode'
1) Go to package manager console. enter image description here. 2) Install package: MySql.Data.EntityFrameworkCore.
Read more >
Deploying Django to Heroku: Connecting Heroku Postgres
Here's everything you need to know to get your database working on Heroku. Deploying a Django app successfully to Heroku is ...
Read more >
System.ArgumentException: 'Keyword not supported: 'sslmode ...
ArgumentException: 'Keyword not supported: 'sslmode'.' error. Entity framework, mysql.data.entity and mysql.data packages are installed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found