Pinax 0.7.3 / Django 1.2.4 Error: keyword error "error_message"

157 views
Skip to first unread message

Joshua Kramer

unread,
Dec 27, 2010, 10:18:31 AM12/27/10
to Pinax Users
Hello Everyone -

I'm trying to get 0.7.3 running under Django 1.2.4 on RHEL6 beta,
using psycopg2 as the database adapter. I get the following error.
Has anyone been able to get this combination of Pinax / Django running
on RHEL6?

Thanks,
-J


TemplateSyntaxError at /

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

Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.2.4
Exception Type: TemplateSyntaxError
Exception Value:

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

Exception Location: /home/josh/workspace/social_test/src/
social_project/lib/django/forms/fields.py in __init__, line 187
Python Executable: /usr/bin/python
Python Version: 2.6.2
Python Path: ['/home/josh/workspace/social_test/src/social_project/
apps', '/home/josh/workspace/social_test/src/social_project/lib/pinax/
apps', '/home/josh/workspace/social_test/src/social_project/lib', '/
home/josh/workspace/social_test/src/social_project', '/usr/lib64/
eclipse/dropins/pydev/eclipse/plugins/
org.python.pydev.debug_1.5.4.2010011921/pysrc', '/home/josh/workspace/
social_test/src', '/usr/lib/python2.6/site-packages', '/usr/lib64/
eclipse/dropins/pydev/eclipse/plugins/
org.python.pydev_1.5.4.2010011921/PySrc', '/usr/lib64/python2.6', '/
usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/lib-old', '/
usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/plat-linux2', '/usr/
lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/
PIL', '/usr/lib64/python2.6/site-packages/gst-0.10', '/usr/lib64/
python2.6/site-packages/gtk-2.0', '/usr/lib64/python2.6/site-packages/
webkit-1.0', '/usr/lib64/eclipse/dropins/pydev/eclipse/plugins/
org.python.pydev_1.5.4.2010011921/PySrc/pydev_sitecustomize', '/usr/
lib64/python26.zip', '/usr/lib64/python2.6/lib-old', '/usr/lib64/
python2.6/lib-tk', '/usr/lib64/python26.zip']
Server time: Mon, 27 Dec 2010 09:58:51 -0500

Joshua Kramer

unread,
Jan 5, 2011, 5:37:40 PM1/5/11
to Pinax Users
So it appears that there are a couple instances of a SlugField - one
in the Tribe form and one in the Blog form - that have the
error_message keyword. I've temporarily disabled this and I can get
the page to load!

Carl Karsten

unread,
Jan 5, 2011, 6:04:28 PM1/5/11
to pinax...@googlegroups.com
if it is a bug:
http://code.pinaxproject.com/tasks/

> --
> You received this message because you are subscribed to the Google Groups "Pinax Users" group.
> To post to this group, send email to pinax...@googlegroups.com.
> To unsubscribe from this group, send email to pinax-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pinax-users?hl=en.
>
>

--
Carl K

mattym

unread,
Feb 24, 2011, 5:51:41 AM2/24/11
to Pinax Users
That worked for me, too.

Just replace the old error message var with the new one

#error_message = _("This value must contain only letters, numbers,
underscores and hyphens."))
error_messages={'invalid': 'This value must contain only letters,
numbers, underscores and hyphens.'})

Thanks
Matt

mattym

unread,
Feb 24, 2011, 5:53:21 AM2/24/11
to Pinax Users
The django docs said the old error message "should" be backwards
compatible But I had the same issue.
Reply all
Reply to author
Forward
0 new messages