かぴぶろぐ

またかぴったかと思った・・・(´A`;)

Python Pylons pasterコマンド覚書

カテゴリ[ Python ]

プロジェクトの作成

paster create -t pylons server_manager

起動

paster serve --reload deployment.ini

DB作成等。init

paster setup-app development.ini

Controllerの作成

paster controller hello

Paster COMMAND

関係ないところで実行

> paster
Usage: /usr/local/bin/paster COMMAND
Usage: paster [paster_options] COMMAND [command_options]

Options:
--version show program's version number and exit
--plugin=PLUGINS Add a plugin to the list of commands (plugins are Egg
specs; will also require() the Egg)
-h, --help Show this help message

Commands:
create Create the file layout for a Python distribution
help Display help
make-config Install a package and create a fresh config file/directory
points Show information about entry points
post Run a request for the described application
request Run a request for the described application
serve Serve the described application
setup-app Setup an application, given a config file

pylonsプロジェクト下でpaster COMMAND

> paster COMMAND
Command 'COMMAND' not known (you may need to run setup.py egg_info)
Known commands:
controller Create a Controller and accompanying functional test
create Create the file layout for a Python distribution
exe Run #! executable files
grep Search project for symbol
help Display help
make-config Install a package and create a fresh config file/directory
points Show information about entry points
post Run a request for the described application
request Run a request for the described application
restcontroller Create a REST Controller and accompanying functional test
serve Serve the described application
setup-app Setup an application, given a config file
shell Open an interactive shell with the Pylons app loaded

これはpylonsプロジェクト下じゃないところでやると

> paster COMMAND
Command 'COMMAND' not known (you may need to run setup.py egg_info)

といわれる。

http://kapi.jp/kapi_blog/220

2009年03月26日

関連カテゴリ Python Pylons

この記事のコメント

この記事にコメントする