0

I am using the routes package with pylons for my application. Recently, I have another domain which I want to use for some parts of my application.

Can I setup routing.py with domain conditions as well? Something like -

map.connect('/reviews/', controller = 'reviews', action = 'list', conditions=dict(domain = ['new_domain.com']))

I know we can do this for subdomains. I want to know if we can do this with multiple domains as well. So requests coming from different domains to your application can be routed accordingly.

4

0 回答 0