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...
My question is this:
I want to convert this query sql :
SELECT
"misuper_calendareventsretailerdelivery"."id",
"misuper_calendareventsretailerdelivery"."normal_retailer_delivery_id",
"misuper_calendareventsretailerdelivery"."deli...
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...
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...
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...
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...
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'...
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...
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...
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...