#8110: Admin interface: 'long' object has no attribute 'isdigit'
-------------------------------------------+--------------------------------
          Reporter:  anonymous             |         Owner:  nobody
            Status:  reopened              |     Milestone:  1.0   
         Component:  django.contrib.admin  |       Version:  1.0   
        Resolution:                        |      Keywords:        
             Stage:  Accepted              |     Has_patch:  1     
        Needs_docs:  0                     |   Needs_tests:  0     
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by nekron):

 Replying to [comment:19 oxyum]:
 > Replying to [comment:18 ramiro]:
 > > To the people reorting this: Is it possible these conditions are being
 met in the cases you see the reported error?:

 I can confirm this bug with byteflow and lighttpd 1.4.20. Django runs as
 fastcgi process with the following startup:

 {{{
 python manage.py runfcgi host=127.0.0.1 port=8888
 }}}

 Lighty has been configured like this:
 {{{

 fastcgi.server = (
               "/byteflow.fcgi" => (
               "main" => (
               "min-procs" => 1,
               "max-procs" => 1,
               "host" => "127.0.0.1",
               "port" => 8888,
               #"socket" => "/usr/src/byteflow/socket" + var.PID,
               "check-local" => "disable",
               #"bin-path" => "/usr/src/byteflow/byteflow.fcgi"
                         )
                                   )
                  )
  }}}

 The wsgi environment shows this(copy from traceback mail):

 {{{
 <WSGIRequest GET:<QueryDict: {}>,
 POST:<QueryDict: {}>,
 COOKIES:{'sessionid': '6a0863baf921667e81217b534fd5c02b'},
 META:{'DOCUMENT_ROOT': '/var/www/novh/',
 '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': 'en-us,en;q=0.5',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'sessionid=6a0863baf921667e81217b534fd5c02b',
 'HTTP_HOST': 'blog.noordsee.de',
 'HTTP_IF_MODIFIED_SINCE': 'Tue, 14 Oct 2008 18:15:38 GMT',
 'HTTP_IF_NONE_MATCH': '"de6ded5f6a2828356f158f21599e28d9"',
 'HTTP_KEEP_ALIVE': '300',
 'HTTP_REFERER': 'http://xxxxxxxxxxxxxxxx/admin/blog/post/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
 rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16',
 'PATH_INFO': u'/admin/',
 'PATH_TRANSLATED': '/var/www/novh//admin/',
 'QUERY_STRING': '',
 'REDIRECT_STATUS': '200',
 'REDIRECT_URI': '/byteflow.fcgi/admin/',
 'REMOTE_ADDR': '84.141.xxxxx.xxxx',
 'REMOTE_PORT': '44745',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/admin/',
 'SCRIPT_FILENAME': '/var/www/novh/byteflow.fcgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '85.214.xxxx.xxxxx',
 'SERVER_NAME': 'xxxxxxxxxxxxx.de',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'lighttpd/1.4.20',
 'wsgi.errors': <flup.server.fcgi_base.TeeOutputStream object at
 0xb63266cc>,
 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0xb64a2c2c>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>
 }}}

 Last traceback call shows:

 {{{
 Original Traceback (most recent call last): File "/usr/local/lib/python2.5
 /site-packages/django/template/debug.py", line 71,
 in render_node result = node.render(context) File
 "/usr/local/lib/python2.5/site-
 packages/django/contrib/admin/templatetags/log.py",
 line 17, in render if not self.user.isdigit():
 AttributeError: 'int' object has no attribute 'isdigit'
 }}}

 I am using the current 1.0 release (no trunk or 1.0.x branch) as Django
 installation. Lighty, python 2.5 and flup are compiled from current
 sourcecode releases.

 If you set min and max processes on lighty to one you can get error 500
 real fast switching from byteflows blog (edit some blog) to "home". Do
 this a few times and each time you call "/admin" you get error 500. This
 is only happening if the app runs in Debug=False mode. The blog runs on a
 VServer Virtuozzo system with (while for testing) SQLite3 as db backend.

 Hope this helps!

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8110#comment:20>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to