the code.py

#!/usr/bin/env python
# coding: utf-8
import sys, os
abspath = os.path.dirname(__file__)
sys.path.append(abspath)
os.chdir(abspath)

import web

sys.path.append('./sites')

from sites.simple_is_better.code import app as app_simple_is_better
from sites.kehuyi.code import app as app_kehuyi
from sites.mondayjewelry.code import app as app_mondayjewelry
from sites.sem_express.code import app as app_sem_express

mapping = (
            r"simple-is-better\.com", app_simple_is_better,
            r"www\.simple-is-better\.com", app_simple_is_better,

            r"kehuyi\.com", app_kehuyi,
            r"www\.kehuyi\.com", app_kehuyi,

            r"mondayjewelry\.com", app_mondayjewelry,
            r"www\.mondayjewelry\.com", app_mondayjewelry,

            r"sem-express\.com", app_sem_express,
            r"www\.sem-express\.com", app_sem_express,
        )

application = web.subdomain_application(mapping).wsgifunc()
#application = web.application(urls, globals()).wsgifunc()

On Tue, Apr 12, 2011 at 5:07 AM, Ken <[email protected]> wrote:

> It it works at localhost (buitin server)
>
> # locals
> app = web.subdomain_application(mapping)
> if __name__ == '__main__':
>     app.run()
>
>
> and in the product server ( Apache + mod_wsgi )
>
> and it raise:
>
> TypeError: wsgi() takes exactly 2 arguments (0 given)
>
>
>
> the main code is:
>
> # ...
>> application = web.subdomain_application(mapping).wsgifunc()
>
>
> How to fix it ?
>
>
> --
> http://twitter.com/qichangxing
> http://blog.hi0791.com
> http://simple-is-better.com
> http://www.kehuyi.com/
>
>


-- 
http://twitter.com/qichangxing
http://blog.hi0791.com
http://simple-is-better.com
http://www.kehuyi.com/

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to