Opened 17 years ago

Last modified 12 years ago

#4796 closed

Accessing admin pages as a logged in user crashes under apache + fcgi — at Initial Version

Reported by: fpierfed@… Owned by: Adrian Holovaty
Component: Core (Other) Version: dev
Severity: Normal Keywords: fcgi unicode __proxy__ databrowse
Cc: jeff@…, mmulley@…, me@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

I am using the newforms-admin branch from SVN (revision 5632) under apache 2.0.54, flup SVN (revision 2354) and Python 2.4.1. I have a webapp that uses custom admin sites via myadmin = admin.AdminSite() and myadmin.register(...).

If I access the admin site via the django internal development server, everything works. If I use fcgi the admin pages work only if I am an anonymous user (in that case I am redirected to the login screen, then to the admin pages and all is good). If I use fcgi and I am already logged in, accessing the admin pages gives this error:

TypeError at /tips/admin/
coercing to Unicode: need string or buffer, proxy found
Request Method: GET
Request URL: http://www.peertraveller.com/tips/admin/[[BR]]
Exception Type: TypeError
Exception Value: coercing to Unicode: need string or buffer, proxy found
Exception Location: /home/fpierfed/lib/python2.4/site-packages/django/utils/encoding.py in force_unicode, line 38
Python Executable: /home/fpierfed/bin/python
Python Version: 2.4.1

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top