English | 简体中文
How to Build dynamic web rapidly? We choose sample based on Flask.
sample is a highly packaged Flask Demo which following Flask official documentation.
It's intergrates various code ,function for web development purposes.
It's the easiest way and fastest way to create Flask dynamic website.
- Run
pip install -r requirements.txt
to install required module or Run install.cmd / install.sh to install required module (chmod +x install.sh && ./install.sh
) .
- Run
chmod +x script.sh && ./script.sh
on Linux. Run script.cmd on Windows.
- MVC architecture, easy to get started.
- Change
project/templates/
folder to add or modify static html,css,js file.( Optional ) - Change
project/routes/
folder to modify route file with .py suffix.( Optional ) - If Mysql Database is needed,change
sample/project/config.py
file to edit Mysql config argument.( Optional ) - If Mysql Database is needed,follow Mysql ORM Example to create new Mysql code.( Optional )
- Run
chmod +x script.sh && ./script.sh
on Linux. Run script.cmd on Windows.
- Python 2.7+ version, better 3.6 version
- Mysql( Optional )
├── project
│ ├── models
│ │ ├── __init__.py
│ │ ├── sql.py
│ │ ├── user.py
│ ├── routes
│ │ ├── __init__.py
│ │ ├── admin.py
│ │ ├── auth.py
│ │ ├── index.py
│ ├── services
│ │ ├── __init__.py
│ │ ├── external_functions.py
│ │ ├── external_objects.py
│ ├── templates
│ │ ├── PutHtmlCodeThere.md
│ ├── venv
│ │ ├──......
│ ├── __init__.py
│ ├── database.py
│ ├── config.py
├── LICENSE
├── README_CN.md
├── README.md
├── install.cmd
├── install.sh
├── manage.py
├── script.cmd
├── script.sh
├── requirements.txt
Your help is more than welcome! Even just open an issue to give a enhanced suggestion or ask a question may greatly help others.