Skip to content

Commit

Permalink
SQLS driver
Browse files Browse the repository at this point in the history
  • Loading branch information
feeelin committed Mar 15, 2024
1 parent 0e5b1d2 commit 0629ffb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ RUN apt-get install -y tdsodbc unixodbc-dev
RUN apt install unixodbc-bin -y
RUN apt-get clean -y

RUN apt install build-essential libgss3
RUN cd /tmp
RUN wget https://download.microsoft.com/download/2/E/5/2E58F097-805C-4AB8-9FC6-71288AB4409D/msodbcsql-13.0.0.0.tar.gz
RUN tar xzvf msodbcsql-13.0.0.0.tar.gz
RUN cd msodbcsql-13.0.0.0
RUN ./build_dm.sh
RUN cd /tmp/unixODBC.24807.30156.17882/unixODBC-2.3.1; make install
RUN cd /tmp/msodbcsql-13.0.0.0
RUN ./install.sh install


RUN mkdir /web_django
WORKDIR /web_django

Expand Down
3 changes: 1 addition & 2 deletions cinema/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,12 @@
'USER': 'SA',
'PASSWORD': 'feelinMSSQL_2024',
'HOST': 'mssql.feelindev.ru',
'OPTIONS': {'driver': 'ODBC Driver 17 for SQL Server'}
'OPTIONS': {'driver': 'ODBC Driver 13 for SQL Server'}
}
}

DATABASE_CONNECTION_POOLING = False


# Password validation
# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators

Expand Down

0 comments on commit 0629ffb

Please sign in to comment.