Caught TypeError while rendering: __init__() got an unexpected keyword argument 'maxlength'

122 views
Skip to first unread message

vipul borikar

unread,
Mar 2, 2012, 4:56:26 AM3/2/12
to django...@googlegroups.com
I tried to enable admin and i got this error...

I am running Django on Ubuntu 11.10 and installed Django using apt-get...



Request Method: GET
Request URL: http://localhost:8000/admin/
Django Version: 1.3.1
Exception Type: TemplateSyntaxError
Exception Value:
Caught TypeError while rendering: __init__() got an unexpected keyword argument 'maxlength'
Exception Location: /usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/db/models/fields/__init__.py in __init__, line 545
Python Executable: /usr/bin/python
Python Version: 2.7.2
Python Path:
['/home/vipul/Django/mysite',
 '/usr/local/lib/python2.7/dist-packages/elementtree-1.2.7_20070827_preview-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/lxml-2.3.3-py2.7-linux-i686.egg',
 '/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/stockphoto-0.2.1-py2.7.egg',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/local/lib/python2.7/dist-packages/Satchmo-0.9.2-py2.7.egg',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/gst-0.10',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
 '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
 '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
 '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
 '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
Server time: Fri, 2 Mar 2012 03:39:05 -0600


--
Thanks 

Vipul Borikar
"Our task must be to free ourselves...by widening our circle of compassion to embrace all living creatures and the whole of nature and its beauty."

Daniel Roseman

unread,
Mar 2, 2012, 8:09:43 AM3/2/12
to django...@googlegroups.com
On Friday, 2 March 2012 09:56:26 UTC, Vipulb wrote:
I tried to enable admin and i got this error...

I am running Django on Ubuntu 11.10 and installed Django using apt-get...

Exception Value:
Caught TypeError while rendering: __init__() got an unexpected keyword argument 'maxlength'

There is no argument `maxlength`. There is a `max_length`, though.
--
DR. 
Reply all
Reply to author
Forward
0 new messages