Posterous theme by Cory Watilo

Django and Remote Sybase Servers

It took me a while to figure it out, so I decided to share:

 
DATABASES = { 
   'default': { 
       'ENGINE': 'sqlany_django', 
       'USER': 'YOUR-USER', 
       'PASSWORD': 'YOUR-PASSWORD', 
       'OPTIONS': { 
           'links':  'tcpip(host=YOUR-DB-IP-OR-HOSTNAME;DoBroadcast=None)', 
           'ServerName': 'YOUR-SERVER-NAME', 
       }, 
   } 
} 

Requires Django 1.2, sqlanydb and sqlany-django.