Step0. 安裝Python
首先, 要先安裝Python(當然....)
Step1. 安裝easy_install
下載ez_setup.py, 並安裝, 參考
http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install
Step2. 下載TurboGears並安裝
C:easy_install TurboGears
(參考: http://www.ibm.com/developerworks/cn/linux/l-turbogears/index.html )
若無法執行easy_install, 檢查一下系統PATH變數
On Windows, an easy_install.exe launcher will also be installed, so that you can just type easy_install as long as it's on your PATH. If typing easy_install at the command prompt doesn't work, check to make sure your PATH includes the appropriate C:\Python2X\Scripts directory.
Step3: 執行tg-admin
C:>tg-admin
TurboGears 1.0.5 command line interface
Usage: C:Python25Scriptstg-admin-script.py [options]
Options:
-c CONFIG --config=CONFIG Config file to use
-e EGG_SPEC --egg=EGG_SPEC Run command on given Egg
Commands:
i18n Manage i18n data
info Show version info
quickstart Create a new TurboGears project
shell Start a Python prompt with your database available
sql Run the database provider manager
toolbox Launch the TurboGears Toolbox
update Update an existing turbogears project
首先, 要先安裝Python(當然....)
Step1. 安裝easy_install
下載ez_setup.py, 並安裝, 參考
http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install
Step2. 下載TurboGears並安裝
C:easy_install TurboGears
(參考: http://www.ibm.com/developerworks/cn/linux/l-turbogears/index.html )
若無法執行easy_install, 檢查一下系統PATH變數
On Windows, an easy_install.exe launcher will also be installed, so that you can just type easy_install as long as it's on your PATH. If typing easy_install at the command prompt doesn't work, check to make sure your PATH includes the appropriate C:\Python2X\Scripts directory.
Step3: 執行tg-admin
C:>tg-admin
TurboGears 1.0.5 command line interface
Usage: C:Python25Scriptstg-admin-script.py [options]
Options:
-c CONFIG --config=CONFIG Config file to use
-e EGG_SPEC --egg=EGG_SPEC Run command on given Egg
Commands:
i18n Manage i18n data
info Show version info
quickstart Create a new TurboGears project
shell Start a Python prompt with your database available
sql Run the database provider manager
toolbox Launch the TurboGears Toolbox
update Update an existing turbogears project
全站熱搜
留言列表