Questions tagged as 'django'

1
answer

How to load a large volume of data with Django Querysets?

I have a loading process in a Django project which from an excel file stores information in a Business model. My loading process works, the problem is that the execution time is too high due to the data volume of the excel input. Model.py...
asked by 14.05.2018 / 17:29
0
answers

How to modify kwargs in Django?

I am making the confirmation page of a purchase and I want to pass a hash of the order identifier, previously generated by the system, to a url and with a decorator to check if the user that is accessing is the owner of that order by a decorator...
asked by 19.04.2018 / 11:02
0
answers

Serializers - HyperlinkedModelSerializer: Validate your attributes (fields) [closed]

In restframework how could you validate the fields? I am using HyperlinkedModelSerializer . It happens that I have a model that specifies that for each type of identification document will have an exact number of digits, then I w...
asked by 19.07.2016 / 19:46
0
answers

Python total field [closed]

I have the following code: forms.py: MAX_DETALLES = 5 Detalle_VentaFormSet = inlineformset_factory( Venta, Detalle_Venta, fields=('cantidad','producto'), #SI AGREGO EN FIELDS SUBTOTAL, NO ME DEJA MOSTRAR EL FORM DIRECTA...
asked by 20.05.2016 / 01:31
3
answers

Take a parameter in a url and send it to the model when a form is sent

I have a CreateView view to which I am passing a PK by the URL, what I want to do basically is to take that station and send it to a field of the model with which this view works (the form does not contain the model field to which I want...
asked by 18.07.2017 / 06:45
3
answers

example in field of registration form django

How can I place sample text within a field of a django registration form. something like Thank you in advance.     
asked by 26.03.2018 / 03:07
2
answers

Use React without Node.js

I'm starting on this React. From what I'm seeing there's no other way to use React other than writing it in JSX and then compiling it with Babel to make it work. But to be able to use Babel from console I have to use Node.js. But the only one I...
asked by 15.11.2016 / 04:12
1
answer

Amazon EC2 error IOError Input / Output every 6 or 12 Hours

When I put my project in Amazon EC2, I happened to interact with my application in a moment the error of errno 5 input/output error django I found this ticket reported In my console it appeared to me that my server required to re...
asked by 06.01.2016 / 22:48
2
answers

Use order_by in Django

I try to sort a post list in Django. I read that you have to use .order_by('-fecha') . I have tried the following in the template: {% for post in persona.post_set.all.order_by('-fecha') %} {{ post.texto }}<br> {% endfor %} B...
asked by 01.08.2017 / 08:55
1
answer

VUE Js does not work as a bookstore at DJango

I have an application that I am developing in django and I want to use VUE js as a library but not as a framework, download the library and import it but I do not even work the example of vue Base.html The lbreira de vue is imported here...
asked by 02.10.2018 / 17:14