I didnt look at the blog post but you could try something like this in
your settings:
def debug_for_superuser(request):
if request.user.is_superuser:
return True
else:
return False
DEBUG = debug_for_superuser
I haven't actually tried this but I use something like that to only
show the debug toolbar for superusers. You could also substitute
is_superuser for something like is_staff, or do a lot more using the
extensive django user authentication. Check out this link:
http://docs.djangoproject.com/en/dev/topics/auth/
On Nov 12, 3:19 am, Ramiro Morales <[email protected]> wrote:
> On Fri, Nov 12, 2010 at 7:49 AM, Django-learner <[email protected]> wrote:
> > I turned off the DEBUG in settings on production server, but still
> > want to show the DEBUG page to specific user groups. How can we make
> > this happen?
>
> Eric Holscher posted something along these lines to his blog a while back:
>
> http://ericholscher.com/blog/2009/sep/5/debugging-django-production-r...
>
> --
> Ramiro Morales
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.