mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
adding some debugging
This commit is contained in:
+7
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user