Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48d995d

Browse files
author
Ross Rogers
committed
Add notes and links about configuring ODBC connections to readme. Closes issue lionheart#10.
1 parent 15825f5 commit 48d995d

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Installation
3939
.. code:: python
4040
4141
pip install django-pyodbc
42-
42+
4343
2. Now you can now add a database to your settings using standard ODBC parameters.
4444

4545
.. code:: python
@@ -57,7 +57,22 @@ Installation
5757
}
5858
}
5959
60-
3. That's it! You're done.
60+
3. That's it! You're done.*
61+
62+
\* *You may need to configure your machine and drivers to do an*
63+
`ODBC <https://en.wikipedia.org/wiki/Open_Database_Connectivity>`_
64+
*connection to your database server, if you haven't already. For Linux this
65+
involves installing and*
66+
`configuring Unix ODBC and FreeTDS <http://www.unixodbc.org/doc/FreeTDS.html>`_ .
67+
*Iterate on the command line to test your*
68+
`pyodbc <https://mkleehammer.github.io/pyodbc/>`_ *connection like:*
69+
70+
.. code:: python
71+
72+
python -c 'import pyodbc; print(pyodbc.connect("DSN=foobar_mssql_data_source_name;UID=foo;PWD=bar").cursor().execute("select 1"))'
73+
74+
*extended instructions* `here <https://github.com/lionheart/django-pyodbc/issues/10>`_
75+
6176

6277
Configuration
6378
-------------

0 commit comments

Comments
 (0)