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:

<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'csrftoken': '8b8344b68c0983c708c7ac0269f9fb41',
 'sessionid': '8636774d354a46c35fd8c95d741cb9fa'},
META:{'CSRF_COOKIE': '8b8344b68c0983c708c7ac0269f9fb41',
 'CSRF_COOKIE_USED': True,
 'DOCUMENT_ROOT': '*/var/www/*',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT':
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'es-cl,es;q=0.8,en-us;q=0.5,en;q=0.3',
 'HTTP_CACHE_CONTROL': 'max-age=0',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'sessionid=8636774d354a46c35fd8c95d741cb9fa;
csrftoken=8b8344b68c0983c708c7ac0269f9fb41',
 'HTTP_HOST': 'example.com',
 'HTTP_KEEP_ALIVE': '115',
 'HTTP_REFERER': 'http://example.com',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; es-CL;
rv:1.9.2.15) Gecko/20110303 Ubuntu/10.04 (lucid) Firefox/3.6.15',
 'PATH': '/usr/local/bin:/usr/bin:/bin',
 'PATH_INFO': u'*/app/*',
 'PATH_TRANSLATED': '*/path/to/project/apache/script.wsgi/app/*',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '192.168.x.x',
 'REMOTE_PORT': '34717',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '*/app/*',
 'SCRIPT_FILENAME': '*/path/to/project/apache/script.wsgi*',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '192.168.x.x',
 'SERVER_ADMIN': 'webmas...@example.com',
 'SERVER_NAME': 'example.com',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian)
PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2
mod_wsgi/2.5 Server at example.com Port 80</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with
Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_wsgi/2.5',
 'mod_wsgi.application_group': 'example.com|',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '80',
 'mod_wsgi.process_group': 'example.com',
 'mod_wsgi.reload_mechanism': '1',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (2, 5),
 'wsgi.errors': <mod_wsgi.Log object at 0x9da2740>,
 'wsgi.file_wrapper': <built-in method file_wrapper of
mod_wsgi.Adapter object at 0x9ba5140>,
 'wsgi.input': <mod_wsgi.Input object at 0x9ea06b0>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>


Any help is welcome.
Best regards!

<http://sektor/phppgadmin/redirect.php?server=localhost%3A5432%3Aallow&database=personal&schema=public&subject=table&table=auth_user>

-- 
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.

Reply via email to