标题:webpy问题,两个页面就报错!!!apache wsgi python2.6
取消只看楼主
haozixxat126
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2011-6-17
 问题点数:0 回复次数:0 
webpy问题,两个页面就报错!!!apache wsgi python2.6
说明:写两个请求就报错,单独一个没有问题!!!
代码如下:code.py

程序代码:
import web

urls = (
    '/index', 'index'
#    '/hello', 'hello'
)

class index:
    def GET(self):
        return  "111hello world"
        #return render.base(view.listing())
#class hello:
#    def GET(self):
#        return "Hello, webpy!"

application = web.application(urls, globals()).wsgifunc()
apache配置如下:
程序代码:
WSGIScriptAlias /webpy "/var/www/webpy/code.py/"
Alias /webpy/static "/var/www/webpy/static/"

<Directory "/var/www/webpy">
    Order allow,deny
    Allow from all
</Directory>

求解~~~
搜索更多相关主题的帖子: index 
2011-06-17 17:23



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-343205-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.337969 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved