GitHub - zzy5111398/server · GitHub
Skip to content
This repository was archived by the owner on Sep 2, 2019. It is now read-only.

zzy5111398/server

Folders and files

Repository files navigation

Python Flask订餐系统

进入虚拟环境

Linux环境

. venv/bin/activate

windows环境

venv\scripts\activate

安装加载包

pip install -r requirements.txt

启动

Linux环境

export ops_config=production&& python manager.py runserver

windows环境

set ops_config=local&& python manager.py runserver 

git push

git push -u origin master

##flask-sqlacodegen

flask-sqlacodegen 'mysql://root:Zzy_05188@127.0.0.1/food_db' --outfile "common/models/model.py"  --flask
flask-sqlacodegen 'mysql://root:Zzy_05188@127.0.0.1/food_db' --tables user --outfile "common/models/user.py"  --flask

所见即所得编辑器ueditor

<script src="{{ buildStaticUrl('/plugins/ueditor/ueditor.config.js') }}"></script>
<script src="{{ buildStaticUrl('/plugins/ueditor/ueditor.all.min.js') }}"></script>
<script src="{{ buildStaticUrl('/plugins/ueditor/lang/zh-cn/zh-cn.js') }}"></script>


UE.getEditor('editor',{
   toolbars: [
        [ 'undo', 'redo', '|',
            'bold', 'italic', 'underline', 'strikethrough', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall',  '|','rowspacingtop', 'rowspacingbottom', 'lineheight'],
        [ 'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
            'directionalityltr', 'directionalityrtl', 'indent', '|',
            'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
            'link', 'unlink'],
        [ 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
            'insertimage', 'insertvideo', '|',
            'horizontal', 'spechars','|','inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols' ]

    ],
    enableAutoSave:true,
    saveInterval:60000,
    elementPathEnabled:false,
    zIndex:4,
    serverUrl:common_ops.buildUrl(  '/upload/ueditor' )
});

可参考资料

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages