diff --git a/README.md b/README.md index ab0e4e3..8d859ee 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ app.py ----服务器的主程序 * `tornado` * `datetime` * `pycket` +* `redis` * `pymongo` * `pymysql` diff --git a/handler/MongoDB.py b/handler/MongoDB.py index 9ea4ab3..3a444b6 100644 --- a/handler/MongoDB.py +++ b/handler/MongoDB.py @@ -6,6 +6,7 @@ class Mongo_DB(): def __init__(self, Mongo_URL = 'mongodb://localhost:27017/'): self.Client = MongoClient(Mongo_URL) + print("open mongodb success !!!") def connect(self,DataBase = 'default', Collection = 'default'): self.DataBase = self.Client[DataBase] diff --git a/handler/MysqlDB.py b/handler/MysqlDB.py index abf9717..62bee3f 100644 --- a/handler/MysqlDB.py +++ b/handler/MysqlDB.py @@ -9,7 +9,7 @@ table_name = "user_info" # 打开数据库连接 -db = pymysql.connect( database_ip, database_user, database_passwd, database_name ) +db = pymysql.connect(host=database_ip, user=database_user, password=database_passwd, database=database_name ) print('open mysql success !!!') # 使用cursor()方法获取操作游标 cursor = db.cursor() diff --git a/handler/__pycache__/MongoDB.cpython-36.pyc b/handler/__pycache__/MongoDB.cpython-36.pyc index 992e607..319f651 100644 Binary files a/handler/__pycache__/MongoDB.cpython-36.pyc and b/handler/__pycache__/MongoDB.cpython-36.pyc differ diff --git a/handler/__pycache__/MysqlDB.cpython-36.pyc b/handler/__pycache__/MysqlDB.cpython-36.pyc index e395b49..6b19add 100644 Binary files a/handler/__pycache__/MysqlDB.cpython-36.pyc and b/handler/__pycache__/MysqlDB.cpython-36.pyc differ diff --git a/template/auth/login.html b/template/auth/login.html index 31b23df..5113dab 100644 --- a/template/auth/login.html +++ b/template/auth/login.html @@ -7,7 +7,7 @@ License URL: http://creativecommons.org/licenses/by/3.0/
-Donec dictum nisl nec mi lacinia, sed maximus tellus eleifend. Proin molestie cursus sapien ac eleifend.
+The new online circuit simulation platform !
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget Lorem ipsum dolor sit - amet, consectetuer adipiscing elit. Aenean commodo ligula ege
+The new online circuit simulation platform