Routing subdomains in Pyramid

后端 未结 2 386
无人及你
无人及你 2021-01-18 16:42

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

map.connect(\'/\', controller=\'index\', conditions=dict(sub_domain=False))
map.connect(\'/\', contro         


        
2条回答
  •  离开以前
    2021-01-18 16:53

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

    Multiple domains and subdomains on a single Pyramid instance

提交回复
热议问题