I am accessing the app through the right domain, but when I created the example I made a mistake with the domain. Setting the controllers does fix the problem. If I was not using the right domain then it wouldn't work with the controllers variable either.
On Fri, Nov 18, 2011 at 3:21 PM, Jonathan Lundell <jlund...@pobox.com> wrote: > On Nov 17, 2011, at 8:03 PM, Richard Baron Penman wrote: > >> The point is the other controllers are not available without the >> controllers variable. I can provide the real domains used in a private >> conversation if helpful. >> >> Since Bruno has also experienced this it must be a real problem. > > It's the way it's designed. If you specify that domain1 maps to the forum > app, then you can't access the sales app through domain1. If there's a bug, > it's that specifying controllers shouldn't have let you do that. > > If it would be helpful, please do send me the real domains, and I'll work up > another test case. I'd also like to know what your use case is--why you > aren't accessing the sales app through domain2. > >> >> >> On Fri, Nov 18, 2011 at 2:09 AM, Jonathan Lundell <jlund...@pobox.com> wrote: >>> On Nov 17, 2011, at 8:48 AM, Richard Baron Penman wrote: >>> >>>> OK domain1/sales >>>> (These are just examples - if would be helpful to have the exact >>>> settings and domains I am using we can have a private conversation.) >>>> >>>> The apps have different controllers. >>> >>> With this router: >>> >>> routers = dict( >>> BASE = dict( >>> domains = { >>> 'domain1' : 'forum', >>> 'domain2' : 'sales', >>> }, >>> ), >>> ) >>> >>> The logic for domain1/sales says this: It's domain1, so the app must be >>> 'forum'. (If you've specified 'domains=', the router takes that to be >>> authoritative.) >>> >>> There's no forum/sales controller, so sales must be a function in the >>> default controller of forum: forum/default/sales. >>> >>> Which app/controller/function do you expect domain1/sales to resolve to? >> > > >