Pivotal/Django settings for user provided MSSQL database

前端 未结 2 1597
天命终不由人
天命终不由人 2021-01-27 07:48

I deployed a django application on Pivotal Cloud Foundry. While in development, I just stuck with the built in sqlite database while getting the UI together (didn\'t need to re

2条回答
  •  悲哀的现实
    2021-01-27 07:57

    Thanks Danial for the post and sharing your code on github. It took me a while to troubleshoot the connection as my installation had a different version of driver. I had ssh-ed into the app to find the driver file and update the version inodbcinst.ini file as below.

    [ODBC Driver 17 for SQL Server]
    Description=Microsoft ODBC Driver 17 for SQL Server
    Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.5.so.2.1
    UsageCount=1
    

提交回复
热议问题