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:
@ -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 = ['*']
|
||||
|
||||
Reference in New Issue
Block a user