Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools
Board » General » Feature Discussions » Advanced permissions (for the board)

Page: Previous 1 2 3

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 ? ;)
do you use sphene.community.middleware.\MultiHostMiddleware ? and have SPH_HOST_MIDDLEWARE_URLCONF_MAP set ?
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
Ack!
3.3. sphene.community.middleware.\MultiHostMiddleware

TODO describe me :( 
"Never quote yourself" -- 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
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 ? ;)
That works for me! Thanks.
"Never quote yourself" -- Daniel Ellison

Page: Previous 1 2 3

Please login to post a reply.



Powered by Sphene Community Tools