3 Star 1 Fork 0

长阳 / QTornado

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

#QTornado Document

Include Part

  • src
    • init_filter.py
    • initial_content.py
    • lib.py
    • Qtornado.py
  • bin
    • Qtornado.py

Introduction

a foolish experence contribute me  to make this ..
this is a very small and simple web framework base on tornado 

Install

curl -fsSL https://raw.githubusercontent.com/Qingluan/QTornado/master/install.sh | sh 

Useage

usage: it is usage for qingluanTornado 
this is a assistant for write web html weite by Qingluan github :
http://github.com/Qingluan
optional arguments:
  -h, --help            show this help message and exit
  -p PRO_NAME_PATH, --pro_name_path PRO_NAME_PATH
                        this argu is represent project's name
  -i INIT, --init INIT  add a init controller in initialization
  -c ADD_CONTROLLER, --add-controller ADD_CONTROLLER
  -r RE, --re RE
  -t THEME_CHOICE, --theme-choice THEME_CHOICE
  -u, --uninstall

Example

Qtornado.py -p Web_test -i login

this will generate a tree like this :

Web_test
├── manifest.py
├── controller.py
├── main.py
├── setting.py
├── static
└── template
    ├── index.html
    └── login.html

and run web with cd web_test && python main.py to start server

if you want to change port , write setting.py , change port=8080

and you can change your db_engine by overide generated file "setting.py"

db_engine = motor.MotorClient()  # default is mongo db

...

if you want to add a html+controller+router , you can just

cd web_test python manifest.py -c newcontroller

空文件

简介

Qtornado 展开 收起
Python
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/dark.H/QTornado.git
git@gitee.com:dark.H/QTornado.git
dark.H
QTornado
QTornado
master

搜索帮助