From 45342ffdacfe1d0ea1346dab2e58f3762cc5ff6a Mon Sep 17 00:00:00 2001 From: ColsonZhang <784278850@qq.com> Date: Wed, 31 Mar 2021 14:49:39 +0800 Subject: [PATCH] modify the html --- README.md | 1 + handler/MongoDB.py | 1 + handler/MysqlDB.py | 2 +- handler/__pycache__/MongoDB.cpython-36.pyc | Bin 1308 -> 1342 bytes handler/__pycache__/MysqlDB.cpython-36.pyc | Bin 1260 -> 1291 bytes template/auth/login.html | 6 +++--- template/auth/register.html | 7 +++---- 7 files changed, 9 insertions(+), 8 deletions(-) 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 992e6075d6e892648b8bc3ce60cd67f1ef8ba833..319f6517ca3323f770ea67aa62c3ece2f5311157 100644 GIT binary patch delta 382 zcmbQkwU3L_n3tF9zeq~Lm5H3M>ctos7)lsw7@HYu7~&aAm{Nc&MurrIUCAU}$iZb&`G?{L(6sP8- zMREFqw8V!7`K)9p;s7fA<>+D+6Ht_&m6}`2R?h$c delta 345 zcmdnTHHVASn3tDJt(hxfZQ7$w-)f!tpnlVce5*@9Dx%2JCacQGolf)p`K-pp90&IV)@af1jR5CKvSAvl1n zTkOgCd3mYHC0vsOm=-hgO#Z^8WOR$QpeQr11ZWjV?=23Xl9JTCl43NyQ5^B{nR&&j zMJ0Tb-IxzEvQ6eWHa^HWN5QtcQ)%0VvYVdP-ulL7#=6haUH diff --git a/handler/__pycache__/MysqlDB.cpython-36.pyc b/handler/__pycache__/MysqlDB.cpython-36.pyc index e395b49f07a0349438822a0a745bd2b50ced1c53..6b19add6bde87e8cf9b1a16cef161473fad2f43e 100644 GIT binary patch delta 298 zcmaFE+0CVF%*)H=Bao7y%g(^?m;ni}0oe{fTpTn}Sz9NCy_Y45J(VMcqnVMBA(cIg zvzZ}^GlesStA!zoD}_6S2S{_LFa|Sd@=mNUSJGs;#gdUM>DT*yQ zKQ}kCq=*M75XDiHpOcf6n4GQ2R>TZa#yj~OvxWd4h$#psgeJ4GSTagXc3|-~=LCx0 sVo%P`%S%lzDG~>%0hv?;wnP}jk^m71&0v<$pF delta 266 zcmeC?dc&z~%*)GlcXmXAAUgxYV+JI^3S>I~adE&zWo@lymMHdAjuiH0Mn;BI_AJh3 zhA7Syjug%ohA6HSt`u${&7Hy+%%I6LvC4eoWo1T2-pSt?iy8SRXEV*W#N 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/ -Business Login Form Responsive Widget Template :: w3layouts +Login CZ_OpenSpice @@ -44,8 +44,8 @@ License URL: http://creativecommons.org/licenses/by/3.0/
-

Manage Your Business Account

-

Donec dictum nisl nec mi lacinia, sed maximus tellus eleifend. Proin molestie cursus sapien ac eleifend.

+

CZ_OpenSpice

+

The new online circuit simulation platform !

diff --git a/template/auth/register.html b/template/auth/register.html index ca40cd0..3eaa98b 100644 --- a/template/auth/register.html +++ b/template/auth/register.html @@ -10,7 +10,7 @@ - Gadget Sign Up Form a Flat Responsive Widget Template :: w3layouts + Sign up CZ_OpenSpice @@ -37,9 +37,8 @@
-

Manage Your Gadgets Account

-

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget Lorem ipsum dolor sit - amet, consectetuer adipiscing elit. Aenean commodo ligula ege

+

CZ_OpenSpice

+

The new online circuit simulation platform