1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| Python Flask 商城系统 =====================
* export ops_config=local|production && python manage.py runserver
flask-sqlacodegen 'mysql://root:password@127.0.0.1/shop_db' --outfile "common/models/model.py" --flask flask-sqlacodegen 'mysql://root:password@127.0.0.1/shop_db' --tables user --outfile "common/models/user.py" --flask
<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', 'insertshopedlist', 'insertunshopedlist', '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' ) });
* [python-Flask(jinja2)语法:过滤器](https://www.jianshu.com/p/3127ac233518) * [SQLAlchemy 各种查询语句写法](https://wxnacy.com/2017/08/14/python-2017-08-14-sqlalchemy-filter/)
|