rdegges/django-heroku-postgresify — pull request #3 by pix0r (2012-12-21 22:54:06+00:00)
Title: Attempting to URL-parse all environment variables

I'm seeing behavior where every environment variable is being passed to dj_database_url.config(). Seems that the conditions in the if statement here:

https://github.com/rdegges/django-heroku-postgresify/blob/master/postgresify.py#L33

are not being checked in order. This causes errors when an environment variable contains a malformed URL, even if the environment variable is not a Heroku PostgreSQL URL.

I broke out the if all(...) into separate conditions in the if statement and this fixes the issue for me.