Skip to content

Instantly share code, notes, and snippets.

@acatejr
Last active August 29, 2015 14:04
Show Gist options
  • Save acatejr/ffd1864958e4b760fd4e to your computer and use it in GitHub Desktop.
Save acatejr/ffd1864958e4b760fd4e to your computer and use it in GitHub Desktop.
Django SQLServer Database Settings Example
DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'database_name', # Or path to database file if using sqlite3.
'USER': 'database_user_name', # Not used with sqlite3.
'PASSWORD': 'database_user_password', # Not used with sqlite3.
'HOST': 'LOCALHOST\SQLEXPRESS', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '1433', # Set to empty string for default. Not used with sqlite3.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment