Please open a ticket pointing to this. I think we should support something
like this in routes.py but it needs some more thought.
On Sunday, 8 September 2013 00:00:03 UTC-5, Charles Law wrote:
For completeness I have modified code in application:
application_web2py =
Is it supported already?
I saw this:
http://web2py.com/book/default/chapter/04#Pattern-based-system (last
example)
and
http://stackoverflow.com/questions/7622961/defining-sub-domain-based-on-a-function-in-routes-py-of-web2py
that look like examples of web2py supporting subdomain routes.
I
On 8 Sep 2013, at 9:19 AM, Charles Law charles@gmail.com wrote:
Is it supported already?
The parametric router might do what you want.
I saw this:
http://web2py.com/book/default/chapter/04#Pattern-based-system (last example)
and
I came up with an alternative solution, but this only applies to openshift.
It looks like there is an application file that opeenshift calls, which in
turn calls web2py:
https://github.com/prelegalwonder/openshift_web2py/blob/master/wsgi/application
I added code that that checks which domain
Thank you for letting us know. Others may find it useful.
On Saturday, 7 September 2013 20:20:50 UTC-5, Charles Law wrote:
I came up with an alternative solution, but this only applies to openshift.
It looks like there is an application file that opeenshift calls, which in
turn calls
For completeness I have modified code in application:
application_web2py = gluon.main.appfactory(wsgiapp=gluon.main.wsgibase,
logfilename=WEB2PY_LOG,
profilerfilename=None)
def application(environ,
6 matches
Mail list logo