Questions tagged as 'django'

1
answer

generate reports (excel or pdf) django

hello good I want to generate some type of report from the results that my searches generate, all this of a web project in django, here my views: What would be the easiest way to generate these reports ?, Thanks in advance.   ...
asked by 14.08.2018 / 18:40
0
answers

Download zip file with HttpResponse Django StringIO ()

I am trying to return a zip file with HttpResponse , using StringIO because I am not storing it in the database or on the hard drive. My problem is that my answer is 200 when I request the file, but the browser never asks me if I wa...
asked by 15.08.2018 / 16:56
0
answers

how to remove ALL the elements of a fix

In an arrangement I save the entire format of a table that I am placing in a PDF, I do it within a for . At the next round he places the first and the second, when he only has to place the second because it is the second round. How can I...
asked by 13.08.2018 / 17:27
1
answer

Access a method variable $ .ajax

Out of $ .ajax I want to access the variable var = row. With a console.log if it returns results. How could I fix it? $.ajax({ url: '/laboratorio/searchLista/', method: 'GET', data: {'id':id_doctor}, success: function(resultado...
asked by 09.08.2018 / 23:34
0
answers

Error with {% trans%} in django template

I have a django template that I want to translate a value that is variable, because it is inside a for. The line is as follows: {{item.title}} I want to translate what is inside that variable of the template. What I did was {{{% trans 'ite...
asked by 22.08.2018 / 10:12
1
answer

how can I fix it list index out of range

I have a query and that query only throws me a record and when I optengo I ask you to throw me the value that is in the position [0] for a in datos_estados: tabla_datos = [a["estado"], a["seccion"], 'Teorico'] for vuelta in range(mes_i...
asked by 08.08.2018 / 22:12
0
answers

Django URL Reset Password Error

I have the following problem with the authentication system URLs of Django . I request to reset my password, an email arrives with the following link: link After that, I go to that link and it takes me to the following URL:...
asked by 08.08.2018 / 14:40
2
answers

Some way to run an HTML filter in Django with dynamic data

I saw the solution to the question "how to make the search engine of my application in django"; however, I have tried to use a html filter of those that filter a table in the browser and are erasing data until they leave only the data that looks...
asked by 07.08.2018 / 23:47
0
answers

Hosting me the error Invalid command 'PassengerAppRoot

I have a shared hosting service that Python supports. When creating the python project and wanting to visualize it in passenger_wsgi.py working, I do not see anything running and according to my provider sends this log: /home/ddgarcia/public_h...
asked by 16.08.2018 / 23:20
0
answers

ConnectionAbortedError, AttributeError: Django

I am running an application in console with the command python manage.py runserver The application works well, the queries are correct, etc. However, it shows me the following exceptions: ConnectionAbortedError: [WinError 10053] Se ha anula...
asked by 08.08.2018 / 17:02