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,
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
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,
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'
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
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
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
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
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
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', '
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:
&
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...
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(
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 "
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"
/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
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
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')
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
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'),
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
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
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
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
24 matches
Mail list logo