Re: Rendering - too many values to unpack

2009-10-13 Thread LuisC
Hi!!, well, I am trying to bind the form... It seems that I was a little harsh. You are right... your bind works perfectly and now the forms displays the data to be updated. OK with the get()... Thank You for your time and patience On Oct 13, 5:27 pm, Daniel Roseman wrote: > On Oct 13,

Re: Rendering - too many values to unpack

2009-10-13 Thread Daniel Roseman
On Oct 13, 9:41 pm, LuisC wrote: > Daniel, > .get() was one of the several options I tried before with no > results...  When I use .get() the form only displays the submit > button...  I am asuming that that is because the template is specting > a dictionary and I am only supplying a value... Wh

Re: Rendering - too many values to unpack

2009-10-13 Thread LuisC
Daniel, .get() was one of the several options I tried before with no results... When I use .get() the form only displays the submit button... I am asuming that that is because the template is specting a dictionary and I am only supplying a value... Also, .get() only returs the" __str__" value,

Re: Rendering - too many values to unpack

2009-10-13 Thread Daniel Roseman
On Oct 13, 3:09 am, LuisC wrote: > Hi!!! > > I am having some trouble trying to output a database record to a > form > > **My form: > class ClientesFIForm(forms.Form): >     ClienteCodigo = forms.IntegerField(label='Codigo Cliente') >     ClienteNombre = forms.CharField(label='Nombre Cliente'

Rendering - too many values to unpack

2009-10-12 Thread LuisC
Hi!!! I am having some trouble trying to output a database record to a form **My form: class ClientesFIForm(forms.Form): ClienteCodigo = forms.IntegerField(label='Codigo Cliente') ClienteNombre = forms.CharField(label='Nombre Cliente') ClienteFechaCreacion = forms.DateField(widge

Re: render_to_response fails with TemplateSyntaxError: too many values to unpack

2009-08-18 Thread girzel
On Wed, Aug 19, 2009 at 8:30 AM, Janne Peltola wrote: > > Template rendering fails when both form data and a tuple are passed to > render_to_response. > > Python: 2.6.2; Django: 1.1; Environment: Windows + built-in dev server > > I use the standard django.contrib.auth.models.User and .Group models

render_to_response fails with TemplateSyntaxError: too many values to unpack

2009-08-18 Thread Janne Peltola
Template rendering fails when both form data and a tuple are passed to render_to_response. Python: 2.6.2; Django: 1.1; Environment: Windows + built-in dev server I use the standard django.contrib.auth.models.User and .Group models. View: class FuksiForm(forms.Form): ryhmat = forms.Mode

Re: too many values to unpack

2009-07-04 Thread Mirat Bayrak
check your paranthesis when i see that error it is usually about paranthessis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To

Re: too many values to unpack

2009-07-04 Thread Karen Tracey
On Sat, Jul 4, 2009 at 12:39 PM, Carlos Eduardo Sotelo Pinto < csot...@aqpglug.org.pe> wrote: > > Hi people > > I have this form , as my subject says, it is giving me "to many values > to unpack" > FYI, providing the traceback, or at least identifying the line of code that causes the error, would

too many values to unpack

2009-07-04 Thread Carlos Eduardo Sotelo Pinto
Hi people I have this form , as my subject says, it is giving me "to many values to unpack" class ProductModelForm(forms.ModelForm): product_model = forms.ModelChoiceField(ProductModel.objects.all(), None, u'Modelo') class Meta: model = ProductModel exclude = ['maker', '

Re: Getting a 'too many values to unpack' error

2009-01-14 Thread Thomas Guettler
7;]) & Q > (sandp__price__name__gte=request.GET['minprice'])) > styles = styles.select_related().filter(a) ### This is the > line that is giving me the error!! > > Whenever I do a search where the user enters a minimum price and > selects a sizeI get the error: &

Getting a 'too many values to unpack' error

2009-01-14 Thread Michael
ET['size']) & Q (sandp__price__name__gte=request.GET['minprice'])) styles = styles.select_related().filter(a) ### This is the line that is giving me the error!! Whenever I do a search where the user enters a minimum price and selects a size...

Re: Too many values to unpack

2008-10-07 Thread mthorley
lorcode.profiler.middleware.PersonalityProfileMiddleware') > > > > Traceback: > > > File "/Users/matthew/sandbox/cc-django-1.0-integration/lib/django/core/ > > > handlers/base.py" in get_response > > >   86.                 response = callback(

Re: Too many values to unpack

2008-10-07 Thread mthorley
response = callback(request, *callback_args, > > **callback_kwargs) > > File "/Users/matthew/sandbox/cc-django-1.0-integration/site/colorcode/ > > profiler/views.py" in personality_assessment > >   181.       strengthslims_form.is_valid() and \ > > File "

Re: Too many values to unpack

2008-10-07 Thread Steve Holden
elf.is_bound and not bool(self.errors) > File "/Users/matthew/sandbox/cc-django-1.0-integration/lib/django/ > forms/forms.py" in _get_errors > 111. self.full_clean() > File "/Users/matthew/sandbox/cc-django-1.0-integration/lib/django/ > forms/forms.py"

Too many values to unpack

2008-10-07 Thread mthorley
/cc-django-1.0-integration/lib/django/ forms/forms.py" in full_clean 224. value = field.clean(value) File "/Users/matthew/sandbox/cc-django-1.0-integration/lib/django/ forms/fields.py" in clean 648. if not self.valid_value(value): File "/Users/matt

Re: Too many values to unpack error

2008-07-10 Thread Fernando Rodríguez
El mié, 09-07-2008 a las 09:35 -0500, Arien escribió: > > TOPIC_CHOICES = ( ('general', 'General enquiry'), > > ('bug', 'Bug report'), > > ('suggestion' 'Suggestion'), > > ) > > You're missing a comma in the last-but-one line. (It evaluates to

Re: Too many values to unpack error

2008-07-09 Thread Arien
On Wed, Jul 9, 2008 at 9:27 AM, Fernando Rodríguez <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm getting this error while calling .as_table() on a form. This is how > I define the form and the view function: > > from django import newforms as forms > > TOPIC_CHOICES = ( ('general', 'General enquiry')

Re: Too many values to unpack error

2008-07-09 Thread rui
Looks like you are following the djangobook, so check if your view is like: Contact us Contact us {{ form.as_table }} Cheers. -- Rui --~--~-~--~~~---~--~~ You received this message because you are s

Too many values to unpack error

2008-07-09 Thread Fernando Rodríguez
Hi, I'm getting this error while calling .as_table() on a form. This is how I define the form and the view function: from django import newforms as forms TOPIC_CHOICES = ( ('general', 'General enquiry'), ('bug', 'Bug report'), ('suggestion' 'Suggestion'),

Re: Kid templates ValueError: too many values to unpack

2006-08-04 Thread Don Arbow
On Aug 4, 2006, at 4:56 AM, bernie2004 wrote: > BTW, by default TEMPLATE_DEBUG is set to DEBUG and not to False like > specified at > http://www.djangoproject.com/documentation/settings/#template-debug In django/conf/global_settings.py it is set to False. In your project's settings file (whic

Re: Kid templates ValueError: too many values to unpack

2006-08-04 Thread bernie2004
Adrian Holovaty wrote: > On 8/3/06, bernie2004 <[EMAIL PROTECTED]> wrote: > > File "... /django/views/debug.py", line 18, in > > get_template_exception_info > > origin, (start, end) = exc_value.source > > > > ValueError: too many values to

Re: Kid templates ValueError: too many values to unpack

2006-08-03 Thread Adrian Holovaty
On 8/3/06, bernie2004 <[EMAIL PROTECTED]> wrote: > File "... /django/views/debug.py", line 18, in > get_template_exception_info > origin, (start, end) = exc_value.source > > ValueError: too many values to unpack Hmmm...I've never used Kid with Dja

Kid templates ValueError: too many values to unpack

2006-08-03 Thread bernie2004
ne 90, in technical_500_response exc_type, exc_value, tb, template_info = get_template_exception_info(exc_type, exc_value, tb) File "... /django/views/debug.py", line 18, in get_template_exception_info origin, (start, end) = exc_value.source ValueError: too many values to unpac