Routing subdomains in Pyramid

后端 未结 2 383
无人及你
无人及你 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

    0 讨论(0)
  • 2021-01-18 17:01

    Theoretically, this is covered by add_route() with a pregenerator argument.

    0 讨论(0)
提交回复
热议问题