Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Django backend for Microsoft SQL Server with load balancer support

Project description

Database engine based on django-pyodbc-azure that overrides database connection. If OPTIONS dictionary contains load_balancer it must be an object with choose method which returnds list of hosts.

Example configuration:

    'default': {
        'ENGINE': 'sql_server_lb',
        'NAME': 'database',
        'USER': 'user',
        'PASSWORD': 'password'
        'HOST': 'host',  # Not used
        'PORT': 1433,
        'COMMAND_TIMEOUT': 360,
        'CONN_MAX_AGE': 3600,  # Persistent connection limited to an hour
        'OPTIONS': {
            'load_balancer': LoadBalancer('database'),
            'driver': 'FreeTDS',
            'host_is_server': True,
            'extra_params': 'TDS_Version=7.3',

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-pyodbc-lb, version
Filename, size File type Python version Upload date Hashes
Filename, size django_pyodbc_lb- (5.2 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size django-pyodbc-lb- (4.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page