How can i connect my Heroku app to a Postgres database hosted on amazon EC2 without any paid addon? I am using Django and my current code is:
DATABASES = {'default': dj_database_url.config(default='postgres://postgres:xxx@publicip/dbname')}
but i am still getting connected to my local database instead..