Elros Romeo,
Can you see the log file? It may show details of the 500 error,
which will likely be some error reported by your Django code.
Could be anything from a Python syntax error to a failed attempt
to connect to a DB, to a misconfigured settings file, or anyth
Sorry guys, please skip my previous post. It appeared unfinished.
My correct one below.
Hi Andrew,
To have a proper `to_python` transformation from `POST` strings please use
forms.
They do that perfectly and also they can handle any king of user input
validations.
form = SomeCustomForm(request
Hi Andrew,
To have a proper `to_python` transformation from `POST` strings please use
forms.
They do that perfectly and also they can handle any king of user input
validations.
form = SomeCustomForm(request.POST)
form.is_valid():
parsed_dictionary = form.cleaned_data()
As for 'Ajax'. It seem
Elros Romeo
as defined by the form.as_p.?
I want to implement this
El viernes, 15 de julio de 2016, 18:49:00 (UTC-5), Elros Romeo escribió:
>
> Hi, i hope you can help me, im trying to make a django post form without
> reloading the page using ajax, but im getting error 500 when submit, can
>
Guessing this is old news, but there are 2 problems with views:
ProductoConcepto.objects.create(producto=producto, orden=orden,
cantidad=cantidad)
- producto and orden need to be Python objects and cantidad is a float, but
the request.POST values will be string representations.
Also the ajax
The error should come with a backtrace. Providing the backtrace will
help a lot in finding the error.
2016-07-15 19:52 GMT+02:00 Elros Romeo :
> Hi, i hope you can help me, im trying to make a django post form without
> reloading the page using ajax, but im getting error 500 when submit, can you
>
Hi, i hope you can help me, im trying to make a django post form without
reloading the page using ajax, but im getting error 500 when submit, can
you help me to fix this, this is my code:
*models.py*
class ProductoConcepto(models.Model):
producto = models.ForeignKey(Producto)
orden = models.For
7 matches
Mail list logo