Posted by Herbert Poul |
|
ok, this makes a bit more sense...
do you use sphene.community.middleware.\MultiHostMiddleware ? and have SPH_HOST_MIDDLEWARE_URLCONF_MAP set ? (it seems the error is, that the 'request' object doesn't have a 'urlconf' attribute) --- Last Edited by Herbert Poul at 2007-09-06 14:43:53 --- Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Daniel Ellison |
|
Actually, no. We're not doing multi-hosting, so we didn't know it was necessary. And it wasn't until now. Odd! :)
I'll have to find the docs for multihost as I don't know what's supposed to go in SPH_HOST_MIDDLEWARE_URLCONF_MAPPING and SPH_HOST_MIDDLEWARE_URLCONF_MAP. Hopefully that'll fix the problem! "Never quote yourself" -- Daniel Ellison |
|
Posted by Daniel Ellison |
|
Ack! 3.3. sphene.community.middleware.\MultiHostMiddleware TODO describe me :( "Never quote yourself" -- Daniel Ellison |
|
Posted by Daniel Ellison |
|
I did something like this and everything seems ok so far: SPH_HOST_MIDDLEWARE_URLCONF_MAP = { 'localhost:8000': { 'urlconf': 'project.urls', 'params': { 'groupName': 'example' } }, }Is there any problem with this? I'm now able to post and the links work as well. "Never quote yourself" -- Daniel Ellison |
|
Posted by Herbert Poul |
|
looks good to me ..
i guess you could also use '.*' instead of 'localhost:8000' .. this way it would work for everything (if .. you don't plan on using the multiple groups for different vhosts feature :) ) Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Daniel Ellison |
|
That works for me! Thanks. "Never quote yourself" -- Daniel Ellison |