LoginSignup
2
4

More than 5 years have passed since last update.

pythonのフレームワークpyramidでのHello World!!

Last updated at Posted at 2019-04-24

WEBフレームワークのpyramid

Djangoが有名ですが、今回はpyramidでのHello Worldを記事にします

python3の仮想環境

python3 -m venv env3
source env3/bin/activate

pipのアップグレード

pip install --upgrade pip

ライブラリのインストール

pip install pyramid

使用できるテンプレート確認

Available scaffolds:
  alchemy:  Pyramid project using SQLAlchemy, SQLite, URL dispatch, and Jinja2
  starter:  Pyramid starter project using URL dispatch and Jinja2
  zodb:     Pyramid project using ZODB, traversal, and Chameleon

プロジェクト作成の雛形を確認

pcreate --list-templates

プロジェクトの作成

通常のプロジェクト

pcreate -t starter hello

プロジェクトのインストール

cd hello
pip install -e .

起動

pserve development.ini

起動確認

スクリーンショット 2019-04-24 16.03.23.png

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4