From f5f7508b4d56151280bd7051c383ae861fa50263 Mon Sep 17 00:00:00 2001 From: Meet Bhagdev Date: Tue, 8 Nov 2016 13:23:41 -0800 Subject: [PATCH] Update settings.py --- .../django/bootcamp/settings.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/samples/development-frameworks/django/bootcamp/settings.py b/samples/development-frameworks/django/bootcamp/settings.py index f412c7a0..363cab5e 100644 --- a/samples/development-frameworks/django/bootcamp/settings.py +++ b/samples/development-frameworks/django/bootcamp/settings.py @@ -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 = ['*']