TypeError at /databrowse/

coercing to Unicode: need string or buffer, __proxy__ found

Request Method: GET
Request URL: http://bitprophet.dyndns.org:8080/databrowse/
Exception Type: TypeError
Exception Value: coercing to Unicode: need string or buffer, __proxy__ found
Exception Location: /usr/lib/python2.5/site-packages/django/utils/encoding.py in force_unicode, line 38
Python Executable: /usr/bin/python
Python Version: 2.5.0

Template error

In template /usr/lib/python2.5/site-packages/django/contrib/databrowse/templates/databrowse/homepage.html, error at line 9

Caught an exception while rendering: coercing to Unicode: need string or buffer, __proxy__ found

1 {% extends "databrowse/base.html" %}
2
3 {% block title %}Databrowse{% endblock %}
4
5 {% block bodyid %}homepage{% endblock %}
6
7 {% block content %}
8
9 {% for model in model_list %}
10 <div class="modelgroup {% cycle even,odd %}">
11 <h2><a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a></h2>
12 <p>
13 {% for object in model.sample_objects %}
14 <a href="{{ object.url }}">{{ object }}</a>,
15 {% endfor %}
16 <a class="more" href="{{ model.url }}">More &rarr;</a>
17 </p>
18 </div>
19 {% endfor %}

Traceback (innermost last)

Switch to copy-and-paste view

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render_node
  754. result = node.render(context)
File "/usr/lib/python2.5/site-packages/django/template/defaulttags.py" in render
  134. nodelist.append(node.render(context))
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render
  790. return self.filter_expression.resolve(context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in resolve
  582. obj = resolve_variable(self.var, context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in resolve_variable
  707. current = force_unicode(current)
File "/usr/lib/python2.5/site-packages/django/utils/encoding.py" in force_unicode
  38. s = unicode(s)

  TypeError at /databrowse/
  coercing to Unicode: need string or buffer, __proxy__ found

Request information

GET

No GET data

POST

No POST data

Variable Value
sessionid
u'b02915429e7bf72557563a6f631475b2'

META

Variable Value
AUTH_TYPE
None
CONTENT_LENGTH
0L
CONTENT_TYPE
None
GATEWAY_INTERFACE
u'CGI/1.1'
HTTP_ACCEPT
u'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
HTTP_ACCEPT_CHARSET
u'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_ACCEPT_ENCODING
u'gzip,deflate'
HTTP_ACCEPT_LANGUAGE
u'en-us,en;q=0.5'
HTTP_COOKIE
u'sessionid=b02915429e7bf72557563a6f631475b2'
HTTP_HOST
u'bitprophet.dyndns.org:8080'
HTTP_MAX_FORWARDS
u'10'
HTTP_USER_AGENT
u'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4'
HTTP_VIA
u'1.1 dev.bitprophet.org'
HTTP_X_FORWARDED_FOR
u'71.172.177.98'
HTTP_X_FORWARDED_HOST
u'dev.bitprophet.org'
HTTP_X_FORWARDED_SERVER
u'dev.bitprophet.org'
PATH_INFO
u'/'
PATH_TRANSLATED
None
QUERY_STRING
None
REMOTE_ADDR
u'207.210.242.136'
REMOTE_HOST
None
REMOTE_IDENT
None
REMOTE_USER
None
REQUEST_METHOD
u'GET'
SCRIPT_NAME
None
SERVER_NAME
u'dev.bitprophet.org'
SERVER_PORT
0
SERVER_PROTOCOL
u'HTTP/1.1'
SERVER_SOFTWARE
u'mod_python'

Settings

Using settings module bitprophet.settings

Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
(('Jeff Forcier', 'jeff@bitprophet.org'),)
ADMIN_FOR
()
ADMIN_MEDIA_PREFIX
u'/media/admin/'
ALLOWED_INCLUDE_ROOTS
()
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
BANNED_IPS
()
CACHE_BACKEND
u'simple://'
CACHE_MIDDLEWARE_KEY_PREFIX
u''
CACHE_MIDDLEWARE_SECONDS
600
COMMENTS_ALLOW_PROFANITIES
False
COMMENTS_BANNED_USERS_GROUP
None
COMMENTS_FIRST_FEW
0
COMMENTS_MODERATORS_GROUP
None
COMMENTS_SKETCHY_USERS_GROUP
None
DATABASE_ENGINE
u'postgresql_psycopg2'
DATABASE_HOST
u''
DATABASE_NAME
u'bitprophet'
DATABASE_OPTIONS
{}
DATABASE_PASSWORD
u'********************'
DATABASE_PORT
u''
DATABASE_USER
u'bitprophet'
DATETIME_FORMAT
u'N j, Y, P'
DATE_FORMAT
u'N j, Y'
DEBUG
True
DEFAULT_CHARSET
u'utf-8'
DEFAULT_CONTENT_TYPE
u'text/html'
DEFAULT_FROM_EMAIL
u'webmaster@localhost'
DISALLOWED_USER_AGENTS
()
EMAIL_HOST
u'localhost'
EMAIL_HOST_PASSWORD
u'********************'
EMAIL_HOST_USER
u''
EMAIL_PORT
25
EMAIL_SUBJECT_PREFIX
u'[Django] '
EMAIL_USE_TLS
False
FILE_CHARSET
u'utf-8'
FIXTURE_DIRS
()
IGNORABLE_404_ENDS
('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
IGNORABLE_404_STARTS
('/cgi-bin/', '/_vti_bin', '/_vti_inf')
INSTALLED_APPS
['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.databrowse', 'bitprophet.base', 'bitprophet.todo', 'bitprophet.jobs']
INTERNAL_IPS
()
JING_PATH
u'/usr/bin/jing'
LANGUAGES
(('ar', 'Arabic'), ('bn', 'Bengali'), ('bg', 'Bulgarian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('es_AR', 'Argentinean Spanish'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ko', 'Korean'), ('kn', 'Kannada'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portugese'), ('pt-br', 'Brazilian'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))
LANGUAGES_BIDI
('he', 'ar')
LANGUAGE_CODE
u'en-us'
LOGIN_REDIRECT_URL
u'/accounts/profile/'
LOGIN_URL
u'/login/'
LOGOUT_URL
u'/accounts/logout/'
MANAGERS
(('Jeff Forcier', 'jeff@bitprophet.org'),)
MEDIA_ROOT
u''
MEDIA_URL
u''
MIDDLEWARE_CLASSES
('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'bitprophet.base.middleware.RequireLoginMiddleware')
MONTH_DAY_FORMAT
u'F j'
PREPEND_WWW
False
PROFANITIES_LIST
u'********************'
ROOT_URLCONF
u'bitprophet.urls'
SECRET_KEY
u'********************'
SEND_BROKEN_LINK_EMAILS
False
SERVER_EMAIL
u'root@localhost'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
u'sessionid'
SESSION_COOKIE_SECURE
False
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_SAVE_EVERY_REQUEST
False
SETTINGS_MODULE
u'bitprophet.settings'
SITE_ID
1
TEMPLATE_CONTEXT_PROCESSORS
('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media')
TEMPLATE_DEBUG
True
TEMPLATE_DIRS
('/usr/lib/python2.5/site-packages/bitprophet/templates/',)
TEMPLATE_LOADERS
('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source')
TEMPLATE_STRING_IF_INVALID
u''
TEST_DATABASE_CHARSET
None
TEST_DATABASE_COLLATION
None
TEST_DATABASE_NAME
None
TEST_RUNNER
u'django.test.simple.run_tests'
TIME_FORMAT
u'P'
TIME_ZONE
u'America/New_York'
TRANSACTIONS_MANAGED
False
URL_VALIDATOR_USER_AGENT
u'Django/0.97-pre (http://www.djangoproject.com)'
USE_ETAGS
False
USE_I18N
False
YEAR_MONTH_FORMAT
u'F Y'

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.