Deployed - Djinnie

12 views
Skip to first unread message

Calvin Cheng

unread,
Aug 27, 2011, 9:51:18 AM8/27/11
to lad...@googlegroups.com
Hallo all,

Back from dinner and discovered my small little error after a little digging.

So, it appears that my psycopg2 problem on webfaction was in fact a small typo in my DATABASES setting in settings.py.

I was erroneously stating:-

DATABASES = {
    'default': {
        'ENGINE': 'postgresql_psycopg2',
        'NAME': 'calvinx_mysecretdb',
        'USER': 'calvinx_mysecretdb',                      # Not used with sqlite3.
        'PASSWORD': 'mysecretpassword',                  # 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.
    }
}

This is the correct syntax:-

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'calvinx_mysecretdb',
        'USER': 'calvinx_mysecretdb',                      # Not used with sqlite3.
        'PASSWORD': 'mysecretpassword',                  # 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.
    }
}


With that amended, www.djinnie.com is now deployed, as you can see.

Will share the source code on github for this little test project we made during the workshop over 3 sessions.  (Will post the link to the source code in this Topic later).

Feel free to peruse the source code and ask any further questions!!

Cheers!
Calvin

Reply all
Reply to author
Forward
0 new messages