python 论坛框架_Python Web 开发框架 Pylons-阿里云开发者社区

3.1.2. Debian/Ubuntu

$ sudo apt-cache search pylons

$ sudo apt-get install python-pylons

$ paster create -t pylons helloworld

/usr/lib/pymodules/python2.6/pylons/templating.py:610: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages)

Engine = entry_point.load()

Selected and implied templates:

Pylons#pylons Pylons application template

Variables:

egg: helloworld

package: helloworld

project: helloworld

Enter template_engine (mako/genshi/jinja2/etc: Template language) ['mako']:

Enter sqlalchemy (True/False: Include SQLAlchemy 0.5 configuration) [False]: True

Creating template pylons

Creating directory ./helloworld

Recursing into +package+

Creating ./helloworld/helloworld/

Copying __init__.py_tmpl to ./helloworld/helloworld/__init__.py

Recursing into config

Creating ./helloworld/helloworld/config/

Copying __init__.py_tmpl to ./helloworld/helloworld/config/__init__.py

Copying deployment.ini_tmpl_tmpl to ./helloworld/helloworld/config/deployment.ini_tmpl

Copying environment.py_tmpl to ./helloworld/helloworld/config/environment.py

Copying middleware.py_tmpl to ./helloworld/helloworld/config/middleware.py

Copying routing.py_tmpl to ./helloworld/helloworld/config/routing.py

Recursing into controllers

Creating ./helloworld/helloworld/controllers/

Copying __init__.py_tmpl to ./helloworld/helloworld/controllers/__init__.py

Copying error.py_tmpl to ./helloworld/helloworld/controllers/error.py

Recursing into lib

Creating ./helloworld/helloworld/lib/

Copying __init__.py_tmpl to ./helloworld/helloworld/lib/__init__.py

Copying app_globals.py_tmpl to ./helloworld/helloworld/lib/app_globals.py

Copying base.py_tmpl to ./helloworld/helloworld/lib/base.py

Copying helpers.py_tmpl to ./helloworld/helloworld/lib/helpers.py

Recursing into model

Creating ./helloworld/helloworld/model/

Copying __init__.py_tmpl to ./helloworld/helloworld/model/__init__.py

Copying meta.py_tmpl to ./helloworld/helloworld/model/meta.py

Recursing into public

Creating ./helloworld/helloworld/public/

Copying bg.png to ./helloworld/helloworld/public/bg.png

Copying favicon.ico to ./helloworld/helloworld/public/favicon.ico

Copying index.html_tmpl to ./helloworld/helloworld/public/index.html

Copying pylons-logo.gif to ./helloworld/helloworld/public/pylons-logo.gif

Recursing into templates

Creating ./helloworld/helloworld/templates/

Recursing into tests

Creating ./helloworld/helloworld/tests/

Copying __init__.py_tmpl to ./helloworld/helloworld/tests/__init__.py

Recursing into functional

Creating ./helloworld/helloworld/tests/functional/

Copying __init__.py_tmpl to ./helloworld/helloworld/tests/functional/__init__.py

Copying test_models.py_tmpl to ./helloworld/helloworld/tests/test_models.py

Copying websetup.py_tmpl to ./helloworld/helloworld/websetup.py

Copying MANIFEST.in_tmpl to ./helloworld/MANIFEST.in

Copying README.txt_tmpl to ./helloworld/README.txt

Copying development.ini_tmpl to ./helloworld/development.ini

Recursing into docs

Creating ./helloworld/docs/

Copying index.txt_tmpl to ./helloworld/docs/index.txt

Copying ez_setup.py to ./helloworld/ez_setup.py

Copying setup.cfg_tmpl to ./helloworld/setup.cfg

Copying setup.py_tmpl to ./helloworld/setup.py

Copying test.ini_tmpl to ./helloworld/test.ini

Running /usr/bin/python setup.py egg_info

配置host监听地址

$ cd helloworld

$ vim development.ini

host = 0.0.0.0

启动服务

$ paster serve --reload development.ini

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值