I'm currently following Heroku's guide to Django on 
Heroku<https://devcenter.heroku.com/articles/django#database-settings>, 
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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/sdRRYa93EMYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to