jazzband / dj-database-url

Use Database URLs in your Django Application.
https://pypi.org/project/dj-database-url/
BSD 3-Clause "New" or "Revised" License
1.49k stars 205 forks source link

Enable CA providing for MySQL URIs #64

Closed TooAngel closed 8 years ago

TooAngel commented 8 years ago

Using ssl-ca from the command line as parameter to provide the CA. Django MySQL database configuration uses a nested dictionary:

{'options': {
     'ssl': {
         'ca': 'PATH TO CA'
     }
 }
kennethreitz commented 8 years ago

is this mysql-specific?

TooAngel commented 8 years ago

The is specific for the mysql backend using mysql-python, where the options are passed to mysql_ssl_set.

http://mysql-python.sourceforge.net/MySQLdb.html#functions-and-attributes https://stackoverflow.com/questions/4323737/how-to-connect-django-to-a-mysql-database-over-an-ssl-connection

kennethreitz commented 8 years ago

:sparkles: :cake: :sparkles:

TooAngel commented 8 years ago

cool, thx