adding some debugging

This commit is contained in:
Craig Kerstiens
2011-09-07 14:51:23 -07:00
parent 1e35f59965
commit c50be05fe8
+7 -2
View File
@@ -66,11 +66,16 @@ try:
'HOST': url.hostname,
'PORT': url.port,
}
print 1
if url.scheme == 'postgres':
DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2',
DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2'
print 2
print DATABASES
if url.scheme == 'mysql':
DATABASES['default']['ENGINE'] = 'django.db.backends.mysql',
DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
print 3
except:
print 4
print "Unexpected error:", sys.exc_info()
EOF