Quickstart

Installation

  • Install django-mssql with your favorite Python package manager:

    pip install django-mssql
    
  • Add the DATABASES configuration.

    DATABASES = {
        'default': {
            'NAME': 'my_database',
            'ENGINE': 'sqlserver_ado',
            'HOST': 'dbserver\\ss2008',
            'USER': '',
            'PASSWORD': '',
        }
    }
    

    Note

    Although the project is named django-mssql the python module is named sqlserver_ado.

Getting the code

The project code is hosted on Bitbucket

hg clone https://bitbucket.org/Manfre/django-mssql/

Dependencies

Django

Django 1.2 and newer are supported by the current release. Support for Django 1.1 requires getting code from tag legacy-1.1.

Python

This backend requires Python 2.6 or newer. Python 3.x support will be investigated when Django supports it.

PyWin32

PyWin32 build 212 or newer is required.