Skip to content

obligate/artcms_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jinja2 模板语法

  • 继承 {% extends "父模板路径"%}
  • 数据块 {% block 块名 %} ... {% endblock %}
  • 路由生成 {{ url_for("模块名.视图名")}}
  • 静态文件加载 {{ url_for('static',filename='静态文件路径')}}
  • 循环语句 {% for 条件%} ... {% endfor %}
  • 条件语句 {% if 条件%} ... {% endif %}

requirement

pip install flask
pip install flask-sqlalchemy==2.1  
pip install SQLAlchemy
pip install flask-wtf
pip install WTForms
pip install pillow
pip install pymysql

refer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors