Commit Graph

35 Commits

Author SHA1 Message Date
Sam Sandberg b83dfb52ce Simplified the querystring parse logic
Apparently I was targetting an older version of python 2.7 where urlparse worked differently
2015-05-15 12:32:15 -04:00
Sam Sandberg 4cc995adc7 Travis didn't like my dict comprehension D: 2015-05-14 18:05:12 -04:00
Sam Sandberg 7f6717e434 Cleaned up querystring parsing
Moved `_parse_querystring_for_options()` into its own function
Added test for empty querystring params
2015-05-14 17:52:16 -04:00
Sam Sandberg 5336a0c014 Don't need this main() stuff for prod 2015-05-14 17:15:26 -04:00
Jeremy Shute e8ea0a64fa supports database options 2015-05-14 17:15:26 -04:00
Danilo Bargen 8c7fa4a026 Added support for percent-encoded postgres paths
This allows the user to specify unix domain sockets as host.

Example: postgresql://%2Fvar%2Flib%2Fpostgresql/dbname

Reference: http://www.postgresql.org/docs/9.2/interactive/libpq-connect.html#AEN38162
2014-08-26 22:10:36 +02:00
Michael Warkentin 5abe35049f Add MySQL (GIS) support
Add mysqlgis url scheme which uses django.contrib.gis.db.backends.mysql,
add a test, and update the README.
2014-01-08 15:18:46 -05:00
kennethreitz 958717e05d Merge pull request #26 from hiisi13/master
Ability to set different engine
2014-01-08 11:15:47 -08:00
kennethreitz e19ea2ed75 Merge pull request #22 from flashingpumpkin/master
Added spatialite backend
2014-01-08 11:13:44 -08:00
kennethreitz 3963baf36b Merge pull request #13 from gabrielgrant/patch-1
Add "pgsql" as a PostgreSQL URL scheme.
2014-01-08 11:13:20 -08:00
kennethreitz 19d7c8f1b9 Merge pull request #10 from cberner/master
This patch fixes the way urls are parsed to support blank passwords, usernames, hostnames...etc. This is particularly important in dev environments with Postgres, where blank passwords currently don't work
2014-01-08 11:12:37 -08:00
Dmitry Kozhedubov fb302bc609 Ability to set different engine 2013-12-15 20:59:18 +04:00
Alen Mujezinovic a573afce27 Added spatialite to uses_netloc too 2013-02-04 15:24:58 +00:00
Alen Mujezinovic a1f61599ca Added spatialite backend 2013-02-01 16:33:44 +00:00
carlio e17c0308c7 Replacing tab with spaces 2013-01-05 11:28:27 +01:00
carlio a14743d00b Handling special case of sqlite://:memory: 2013-01-05 11:25:37 +01:00
carlio fc70e019ba Empty sqlite path will now use a :memory: database 2013-01-05 11:22:45 +01:00
Gabriel Grant c003896bc9 Add "pgsql" as a PostgreSQL URL scheme. 2012-09-08 13:42:37 -03:00
Christopher Berner 18a990511a Add support for blank fields (Django expects '' not None)
Fixes a bug with postgres, where blank passwords weren't supported.
2012-06-22 16:57:53 -07:00
Kenneth Reitz c27a5e2b38 python3 support 2012-06-19 11:53:51 -04:00
Kenneth Reitz 78c2070456 remove query strings from name 2012-06-19 11:21:06 -04:00
Kenneth Reitz df9319ac93 refactor scheme lookup 2012-06-19 10:57:33 -04:00
bencord0 34e1863af3 RedHat's OpenShift platform uses the 'postgresql' scheme.
Note:
Use .config(env=OPENSHIFT_DB_URL) or some other way to set DATABASE_URL=$OPENSHIFT_DB_URL
2012-06-17 16:09:29 +02:00
Zhao Xiaohong 90cbde873f Registerd postgis URL scheme. 2012-06-05 10:37:58 +08:00
Flavio Curella 5030d257b5 Added postgis:// url scheme 2012-06-03 12:23:37 -05:00
George Hickman d5e81355a5 Use get() on os.environ instead of an if. 2012-05-30 09:46:21 +01:00
Kenneth Reitz df7f4ec14b parse(s) 2012-05-30 01:51:08 -04:00
Kenneth Reitz 2a78118ec7 defaults for env 2012-05-30 01:23:28 -04:00
Jamie Matthews 6e2124c2d7 Add support for SQLite 2012-05-01 17:23:09 +01:00
Kenneth Reitz e6cf053d94 typo 2012-04-30 15:04:06 -04:00
Kenneth Reitz 37340e253d parse / config 2012-04-30 14:55:37 -04:00
Kenneth Reitz 7462e79d51 new style 2012-04-30 14:33:12 -04:00
Kenneth Reitz e345b7b1a0 docstring cuft 2012-04-30 13:43:40 -04:00
Kenneth Reitz 8329e83b8b Update dj_database_url.py 2012-04-30 14:37:48 -03:00
Kenneth Reitz 905db96bbb simple enough 2012-04-30 13:37:05 -04:00