Perhaps the Sites framework might help achieve this in a more Django- like way.
http://docs.djangoproject.com/en/1.1/ref/contrib/sites/ Not sure if you've looked into it before and ruled it out... not entirely sure what you're trying to accomplish. On Dec 28, 12:06 pm, kelvan.mailingl...@gmail.com wrote: > I've the site_name with link to the required permission in the db to show > only menu entries the user is allowed to see. > It's ugly but I couldn't find a nicer way. The menus can have a parent if > it's a submenu, so I need to know the actual mainmenu to load the submenus. > If you know a nice way to handle this permission stuff I'd be happy. > > 2009/12/25 Daniel Roseman <dan...@roseman.org.uk> > On Dec 25, 8:45 pm, kelvan.mailingl...@gmail.com wrote: > > request.META['HTTP_HOST'] just return the webadress from the server, I > need the name I gave an url un urls.py. > > Like reverse just the other way > > > > florian > > I'd be interested to know why you need this. The url name is just a > label, it shouldn't have any actual significance. Where are you using > it? > -- > DR. > > signature.asc > < 1KViewDownload -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.