I'm using Grappelli to spruce up my Admin interface.

I would like to customize the site name (and web page tittle).

I have this in my project settings.py file:

# http://django-grappelli.readthedocs.org/en/latest/customization.html
GRAPPELLI_ADMIN_TITLE = "The Default Company"


And in my middle ware I try to change it to match the company name of the 
connecting user:
(This code snipped is abbreviated, don't try and copy and paste it into a 
file and run it!)

from django.conf import settings
def process_request(self, request):
    settings.GRAPPELLI_ADMIN_TITLE = request.user.myuser.site.name

But it seems to be a crap shoot if the title gets changed to the right 
value, or changed at all!

More shared memory consequences?

I could not find a "best practice" for this.  So, I suspect there is a 
"better way" I'm hoping somebody can enlighten me.

Thanks in advance,
Rich.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to