1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00

Update settings.py

This commit is contained in:
Meet Bhagdev
2016-11-08 13:23:41 -08:00
committed by GitHub
parent 6a6d061e92
commit f5f7508b4d

View File

@ -15,7 +15,18 @@ DEBUG = config('DEBUG', default=False, cast=bool)
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': dj_database_url.config(default=config('DATABASE_URL'))
'default': {
'ENGINE': 'sql_server.pyodbc',
'NAME': 'django',
'USER': 'yourusername',
'PASSWORD': 'yourpassword',
'HOST': 'yourserver',
'PORT': '1433',
'OPTIONS': {
'driver': 'ODBC Driver 13 for SQL Server',
},
},
}
ALLOWED_HOSTS = ['*']