View Code? Open in Web Editor
NEW
Pythonプロフェッショナルプログラミングのチュートリアル。Flask及びsetup.pyのサンプルソース。
License: Other
Python 64.11%
CSS 7.82%
HTML 28.07%
flask_and_setup_sample's Introduction
- python3、pip、virtualenvが必要。
- 以下2つの方法いずれかで、簡単なwebアプリ(ただの掲示板)が立ち上がる。
- このリポジトリをgitcloneする
virtualenv (仮想環境名)
source (仮想環境名)/bin/activate
- pip install Flask
cd guestbook
python3 __init__.py
- webブラウザで ローカルホストの8000番へアクセス
2.setup.pyを使って、独立したパッケージとして落とす方法
- このリポジトリをgitcloneする
virtualenv (仮想環境名)
source (仮想環境名)/bin/activate
- 適当なプロジェクトを作り、プロジェクトの直下にcd
pip install (相対 or 絶対パス)/flask_and_setup_sample
guestbook
flask_and_setup_sample's People
Contributors
Watchers