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.48k stars 205 forks source link

I need to disable ssl_require=True in local sqlite databases #104

Closed alexmtnezf closed 6 years ago

alexmtnezf commented 6 years ago

I can't do DATABASE_URL = 'sqlite:///db.sqlite3', because in this piece of code there is no support for other storage mechanism for sqlite database:

**if url == 'sqlite://:memory:':

this is a special case, because if we pass this URL into

    # urlparse, urlparse will choke trying to interpret "memory"
    # as a port number
    return {
        'ENGINE': SCHEMES['sqlite'],
        'NAME': ':memory:'
    }
    # note: no other settings are required for sqlite**

I'm going to create a PR to add support to it, I need to put this immediately in my deployment environment in TravisCI.

alexmtnezf commented 6 years ago

This issue is not your fault, it corresponds to django-heroku project.