Use salesforce database on Cloud9 (Heroku postgresql)

heroku
postgresql
salesforce

#1

Hello,

I have no idea how to export/use/check a database on C9 from Salesforce using heroku postgresql.

I checked on heroku doc and i found it : https://devcenter.heroku.com/articles/heroku-postgresql#connecting-in-django
so i installed dj-database-url, i add on setting.py
import dj_database_url DATABASES['default'] = dj_database_url.config()

I used the command Heroku pg on my C9 term and i get some statistics. They are exactly the same on the heroku postgresql settings on Heroku.

but when i go on model.py and python manage.py shell, i don’t know how to use it

Thanks,

edit : on the immediate (query force.com). i can type SQL and it display content from my salesforce database without problem.