Browse Source

数据库优化(大)
自动清理过期推送信息
自动备份数据库
自动备份正式环境数据库到局域网

chenjunkai 6 years ago
parent
commit
9b85d0098a
2 changed files with 3 additions and 9 deletions
  1. 3 3
      Ansjer/formal_settings.py
  2. 0 6
      Ansjer/test_settings.py

+ 3 - 3
Ansjer/formal_settings.py

@@ -77,9 +77,9 @@ WSGI_APPLICATION = 'Ansjer.formal_wsgi.application'
 # DATABASES_PASS = '1234'
 
 DATABASE_DATA = 'Ansjer81'
-SERVER_HOST = 'ajdb.clraczw4p0yj.us-west-1.rds.amazonaws.com'
-DATABASES_USER = 'root'
-DATABASES_PASS = 'ansjer999999'
+SERVER_HOST = 'localhost'
+DATABASES_USER = 'ansjer'
+DATABASES_PASS = '1234'
 
 DATABASES = {'default': {
     'ENGINE': 'django.db.backends.mysql',

+ 0 - 6
Ansjer/test_settings.py

@@ -77,12 +77,6 @@ SERVER_HOST = 'localhost'
 DATABASES_USER = 'ansjer'
 DATABASES_PASS = '1234'
 
-# DATABASE_DATA = 'AnsjerTest'
-# SERVER_HOST = 'ajdb.clraczw4p0yj.us-west-1.rds.amazonaws.com'
-# DATABASES_USER = 'root'
-# DATABASES_PASS = 'ansjer999999'
-
-
 DATABASES = {'default': {
     'ENGINE': 'django.db.backends.mysql',
     'NAME': DATABASE_DATA,