download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
Goal: Connect to MSSQL using FreeTDS / ODBC in Python.
Host: Ubuntu 11.10 x86_64
Install:
sudo apt-get install freetds-dev freetds-bin unixodbc-dev tdsodbc
pip install pyodbc sqlalchemy
In /etc/odbcinst.ini:
| #!/bin/bash | |
| # CONFIG | |
| USER="myuser" | |
| PROJECT="projectname" | |
| VIRTUALENV_RELATIVE_PATH="virtualenvpath" | |
| DATE_FORMAT="%d/%m/%Y %T" | |
| # AUTO SET | |
| HOME="/home/$USER" | |
| PYTHON="$HOME/$VIRTUALENV_RELATIVE_PATH/bin/python" | |
| MANAGE="$HOME/$VIRTUALENV_RELATIVE_PATH/$PROJECT/manage.py" |