Skip to content

Commit 9f512de

Browse files
committed
fix DB error
1 parent 1c9e897 commit 9f512de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
elif deployment_location == "microsoft":
2323
conn_str = os.environ.get('AZURE_POSTGRESQL_CONNECTIONSTRING')
2424
conn_str_params = {pair.split('=')[0]: pair.split('=')[1] for pair in conn_str.split(' ')}
25-
database_path = 'postgresql+pg8000://{dbuser}:{dbpass}@{dbhost}/{dbname}'.format(
25+
database_path = 'postgresql+psycopg2://{dbuser}:{dbpass}@{dbhost}/{dbname}'.format(
2626
dbuser=conn_str_params['user'],
2727
dbpass=conn_str_params['password'],
2828
dbhost=conn_str_params['host'],

0 commit comments

Comments
 (0)