-
大小: 6.06MB文件類型: .rar金幣: 2下載: 0 次發布日期: 2023-08-15
- 語言: JavaScript
- 標簽: python??tornado??
資源簡介
本項目采用torando + mysql + redis + 七牛 + artTemplate.js+jquery等開源庫
tornado作為用戶產品后臺服務器核心框架
redis 保存session數據、短時間房源信息、地域信息等,保存頁面緩存數據,提高服務器響應速度
采用前后端完全分離架構,采用ajax異步調用、json數據傳輸,使后端接口可以復用
使用template.js 渲染前端頁面
使用七牛存儲網頁的圖片資源
云通訊發送短信

代碼片段和文件信息
#?-*-?coding:?utf-8?-*-
#?@Time????:2018/6/14
#?@Author??:songtao
import?os
import?pymysql.cursors
basePATH?=?os.path.dirname(__file__)
SESSION_EXPIRES_SECONDS?=?72000?#session失效時間
#Appliaction?配置
settings?=?{
????‘static_path‘:os.path.join(os.path.dirname(__file__)?‘static‘)
????‘template_path‘:os.path.join(os.path.dirname(__file__)?‘template‘)
????‘cookie_secret‘:‘ssdsdfdsiwaeijsdcnjiucdsfjkk‘
????‘xsrf_cookies‘:True
????‘debug‘:False
}
#mysql配置
mysql_options?=?{
????‘host‘:‘172.20.10.11‘
????‘database‘:‘ihome‘
????‘user‘:‘songtao‘
????‘password‘:‘songtao1600‘
????‘charset‘:‘utf8‘
????‘cursorclass‘:?pymysql.cursors.DictCursor
}
#redis配置
redis_options?=?{
????‘host‘:‘172.20.10.11‘
????‘port‘:6379
????‘socket_timeout‘:10
}
log_level?=?‘debug‘
log_file?=?os.path.join(os.path.dirname(__file__)?‘logs/log‘)
#?密碼加密密鑰
passwd_hash_key?=?“nlgCjaTXQX2jpupQFQLoQo5N4OkEmkeHsHD9+BBx2WQ=“
iamage_base_url?=?‘http://pb0u3g2h2.bkt.clouddn.com/‘
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????????9??2018-07-09?18:27??ihome?-?副本\.git\COMMIT_EDITMSG
?????文件????????361??2018-07-09?18:28??ihome?-?副本\.git\config
?????文件?????????73??2018-07-04?17:11??ihome?-?副本\.git\desc
?????文件?????????23??2018-07-04?17:12??ihome?-?副本\.git\HEAD
?????文件????????478??2018-07-04?17:11??ihome?-?副本\.git\hooks\applypatch-msg.sample
?????文件????????896??2018-07-04?17:11??ihome?-?副本\.git\hooks\commit-msg.sample
?????文件???????3327??2018-07-04?17:11??ihome?-?副本\.git\hooks\fsmonitor-watchman.sample
?????文件????????189??2018-07-04?17:11??ihome?-?副本\.git\hooks\post-update.sample
?????文件????????424??2018-07-04?17:11??ihome?-?副本\.git\hooks\pre-applypatch.sample
?????文件???????1642??2018-07-04?17:11??ihome?-?副本\.git\hooks\pre-commit.sample
?????文件???????1348??2018-07-04?17:11??ihome?-?副本\.git\hooks\pre-push.sample
?????文件???????4898??2018-07-04?17:11??ihome?-?副本\.git\hooks\pre-reba
?????文件????????544??2018-07-04?17:11??ihome?-?副本\.git\hooks\pre-receive.sample
?????文件???????1492??2018-07-04?17:11??ihome?-?副本\.git\hooks\prepare-commit-msg.sample
?????文件???????3610??2018-07-04?17:11??ihome?-?副本\.git\hooks\update.sample
?????文件??????31013??2018-07-13?18:40??ihome?-?副本\.git\index
?????文件????????240??2018-07-04?17:11??ihome?-?副本\.git\info\exclude
?????文件????????800??2018-07-09?18:27??ihome?-?副本\.git\logs\HEAD
?????文件????????800??2018-07-09?18:27??ihome?-?副本\.git\logs\refs\heads\master
?????文件????????186??2018-07-04?17:12??ihome?-?副本\.git\logs\refs\remotes\origin\HEAD
?????文件????????592??2018-07-09?18:31??ihome?-?副本\.git\logs\refs\remotes\origin\master
?????文件????????415??2018-07-09?18:27??ihome?-?副本\.git\ob
?????文件????????872??2018-07-04?17:16??ihome?-?副本\.git\ob
?????文件????????415??2018-07-04?17:16??ihome?-?副本\.git\ob
?????文件????????421??2018-07-04?17:16??ihome?-?副本\.git\ob
?????文件????????367??2018-07-04?17:16??ihome?-?副本\.git\ob
?????文件????????100??2018-07-12?16:56??ihome?-?副本\.git\ob
?????文件???????2664??2018-07-04?17:16??ihome?-?副本\.git\ob
?????文件????????673??2018-07-04?17:16??ihome?-?副本\.git\ob
?????文件????????154??2018-07-04?17:16??ihome?-?副本\.git\ob
............此處省略867個文件信息
- 上一篇:jQuery小型浪漫婚禮祝福
- 下一篇:ja
vasc ript圖層控制
評論
共有 條評論