Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Routing subdomains in Pyramid

In Pylons 1.0 I could go into config/routing.py and add

map.connect('/', controller='index', conditions=dict(sub_domain=False))
map.connect('/', controller='mobileindex', conditions=dict(sub_domain='m'))

to route m.mydomain.com to a different controller, but still use the same app. Can I do the same in Pyramid?

like image 829
user191363 Avatar asked Nov 15 '22 01:11

user191363


1 Answers

An example of what @syrion is referring to is available here:

Multiple domains and subdomains on a single Pyramid instance

like image 62
X-Istence Avatar answered Dec 19 '22 00:12

X-Istence