I used the solution 
from: 
http://stackoverflow.com/questions/11071579/heroku-database-settings-injection-how-do-i-setup-my-dev-django-database/11072426#11072426

in .profile set:
export HEROKU_LOCAL_DEV=true # used to sel

in setthings.py:

import dj_database_url

import os

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


if bool(os.environ.get('HEROKU_LOCAL_DEV', False)):

    DATABASES = {

        'default': {

            'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 
'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.

            'NAME': 'htest1',                      # Or path to database 
file if using sqlite3.

            'USER': '',                      # Not used with sqlite3.

            'PASSWORD': '',                  # Not used with sqlite3.

            'HOST': '',                      # Set to empty string for 
localhost. Not used with sqlite3.

            'PORT': '',                      # Set to empty string for 
default. Not used with sqlite3.

        }

    }

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

Reply via email to