|
@@ -78,13 +78,27 @@ WSGI_APPLICATION = 'azoauth.wsgi.application'
|
|
|
# Database
|
|
|
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
|
|
|
|
|
|
-DATABASES = {
|
|
|
- 'default': {
|
|
|
- 'ENGINE': 'django.db.backends.sqlite3',
|
|
|
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
+# DATABASES = {
|
|
|
+# 'default': {
|
|
|
+# 'ENGINE': 'django.db.backends.sqlite3',
|
|
|
+# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
|
|
+# }
|
|
|
+# }
|
|
|
+DATABASE_DATA = 'alexa_oauth'
|
|
|
+SERVER_HOST = 'azrdsinstance.clraczw4p0yj.us-west-1.rds.amazonaws.com'
|
|
|
+DATABASES_USER = 'azrds'
|
|
|
+DATABASES_PASS = 'azrds.x.x'
|
|
|
+
|
|
|
+DATABASES = {'default': {
|
|
|
+ 'ENGINE': 'django.db.backends.mysql',
|
|
|
+ 'NAME': DATABASE_DATA,
|
|
|
+ 'USER': DATABASES_USER,
|
|
|
+ 'PASSWORD': DATABASES_PASS,
|
|
|
+ 'HOST': SERVER_HOST,
|
|
|
+ 'PORT': '3306',
|
|
|
+ 'OPTIONS': {'charset': 'utf8mb4', 'use_unicode': True, 'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"},
|
|
|
+ 'AUTOCOMMIT': True
|
|
|
+}}
|
|
|
|
|
|
# Password validation
|
|
|
# https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
|