[web2py] Re: Multiple domains, one app

2014-04-08 Thread Derek
I remember someone doing this a while back and using a {{if domain1 then this.cssurl = url1 else this.cssurl = url2}} basically, returning a different css file for a different domain... if you don't think that just a different css would look all that different, I suggest you take a look here:

[web2py] Re: Multiple domains, one app

2014-04-06 Thread Kenneth
One row is missing in my message: response.view= domain_url + request.controller + '/' + request.function + '.html' I have it in models/db.py so it reflects on all controllers. Kenneth Den söndagen den 6:e april 2014 kl. 09:56:38 UTC+3 skrev Kenneth: Hello, is it possible to build an

[web2py] Re: Multiple domains, one app

2014-04-06 Thread Anthony
I made an table called site that contains domainname and domain_url and by matching domainname and request.env.host_name I get an domain_url from database. In every .html I have changed the {{extend layout.html}} to {{extend domain_url + layout.html}} This approach may be somewhat