Questions tagged as 'django'

0
answers

generate pdf with Django

I am using a library called weasyPrint to generate a PDF with an HTML template and a CSS. My problem is that it does not load {% load static %} and I can not load the images that carry that pdf. It also does not load {% load bootstr...
asked by 24.04.2018 / 10:08
2
answers

Convert SQL query into one for Django ORM

My question is this: I want to convert this query sql : SELECT "misuper_calendareventsretailerdelivery"."id", "misuper_calendareventsretailerdelivery"."normal_retailer_delivery_id", "misuper_calendareventsretailerdelivery"."deli...
asked by 18.04.2018 / 19:08
0
answers

django with ldaps

The error that shows the logging of django_auth_ldap is as follows: It returns error:    14090086: SSL routines: SSL3_GET_SERVER_CERTIFICATE: certificate verify failed We need the system to find the certificate as it is done in linux...
asked by 16.04.2018 / 21:59
0
answers

How to check request.data variables? DRF

I am modifying an API service in Django Rest Framework and I have an error to check if there is a field in the JSON sent by the client. I have a Comments ViewSet that can be associated to a product or a look, so, in the create() of the...
asked by 16.04.2018 / 10:13
1
answer

I can not get data from the database in Django

I have an error that has been happening to me for two days, which I do not understand what it may be, is when I try to obtain the information from the database with the employee model, the code is as follows: from django.shortcuts import rende...
asked by 11.04.2018 / 21:25
1
answer

How to filter a query_set for unique Django values

I'm trying to get unique value results from a query_set in django. What I want is for you to return me as many unique classifications There is. Example. In a Table I have different articles that are classified by type ID | NOMBRE...
asked by 14.04.2018 / 19:43
1
answer

Send query parameters by e-mail Django

How can I send parameters of a query to the body of a message, and send it by email. The e-mail is already sent, but I need to send parameters. autorizar=AutorizacionDocumentos.objects.get(id=idDoc.id) asunto = 'autorizaciòn'...
asked by 04.04.2018 / 21:01
1
answer

How to update multiple instances in a single post - Django rest framework

I have an array of objects: [ { order: 4, id: 1, }, { order: 2, id: 2, } ] Where id is the primary key and the order is the value to update, I am sending to the server by post with axios: this.axi...
asked by 06.04.2018 / 15:18
0
answers

How to have several manners on the same page using Django?

I have a question about using several manners, on one page, now I have this code developed: <div class="row"> <div class="col-md-6"> <button type="button" class="btn btn-primary" data-toggle="modal1" data-target=".bd-e...
asked by 10.04.2018 / 21:55
1
answer

how to clean request.POST? Django

I am doing a card payment process. When making the confirmation of the transaction I want to be able to delete the POST data so that I can not make a new transaction when reloading the page. My code is this: def comprar(request,producto,sto...
asked by 12.04.2018 / 11:59