Heroku & Django: Database configuration issues with dj-database-url

224 views
Skip to first unread message

Tuss4

unread,
Oct 15, 2012, 4:32:55 AM10/15/12
to django...@googlegroups.com
I'm currently following Heroku's guide to Django on Heroku, but when it comes to configuring the database in settings.py I'm just at a lost. I tried copying and pasting the code provided:

"
import dj_database_url
DATABASES = {'default': dj_database_url.config(default='postgres://localhost')}

"
I end up getting errors when trying to runserver or syncdb. I tried to see if I should change the url to something different besides 'postgres://localhost', but I still got error. Now before I continue I should mention that dj-database-url, django, and psycopg2 installed correctly, but I'm stuck with the database settings. Any help would be appreciated.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages