Pythonと「Flask」でページ・ファイルを分割する方法について入門者向けにまとめました。
【例】階層わけ
├─ apps │ ├─ index.py │ └─ input_data.py ├─ templates │ ├─ index.html │ └─ input_data.html ├─ static └─ app.py
サンプルコード
■app.py
■apps/index.py
■apps/input_data.py
■apps/post.py
■templates/base.html
■templates/index.html
■templates/input_data.html

【Flask超入門】簡単かつ効率的にWebアプリを作ろう
PythonモジュールFlaskの使い方、Webアプリケーションを作る方法について入門者向けにまとめました。
コメント