On Tue, Mar 15, 2011 at 6:32 PM, emonk <elmonke...@gmail.com> wrote: > Hi django-users. > > I have a django project running in apache2 with mod_wsgi and I need get the > username logged into the mail error; the user is registered in the same data > base of the project, i mean in the auth_user table (request.user.username > called in the views). > > This is an example of the error mail generated by a some user request with > an error and received by me (the admin) using DEBUG = False in settings.py: >
Write some middleware which runs after AuthenticationMiddleware and inserts the user's name into request.META. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.