Skip to content Skip to sidebar Skip to footer

Configure Django With Ms Sql Server Database

I'm setting up a Django application and I want to use SQL Server 2012 for my database. To configure my website I'm following this section of the official Django documentation. In

Solution 1:

Looks like you'll need django-mssql which requires django 1.4 or below:

http://django-mssql.readthedocs.org/en/latest/

It has a pip package: https://pypi.python.org/pypi/django-mssql

Then include in your settings.py:

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

Post a Comment for "Configure Django With Ms Sql Server Database"