Re: Necesito orientacion de que debo hacer y como lo debo hacer(procedimiento)

2021-12-03 Thread Rafael Matos Borges
Eu também aprendendo agora django Em qua., 1 de dez. de 2021 20:22, Amor Zamora escreveu: > Les comento que con la libreria PyPDF2, quiero leer 1 archivo (.pdf) que > esta en una carpeta, tomar la informacion de ese archivo y enviarla a un > scrpt, que se procese(ya tengo hechas las funciones de

Re: for loop + transaction.on_commit + celery = Unexpected Behaviour

2021-12-03 Thread Martin Pätzold
This is an older topic, but for everyone who found this discusion and had the same issue: The problem is most likely using "lambda" inside a for-loop. If you switch out "lambda" for "functools.partial" it should work as expected. Jani Tiainen schrieb am Donnerstag, 27. April 2017 um 08:27:11 UTC

Re: Use previously requested data in another request

2021-12-03 Thread kayhan
Thanks but I did not change the settings. And to test, SESSION_COOKIE_AGE = 5 * 60, I added to the settings but there is still the same problem. On Fri, Dec 3, 2021 at 8:55 PM Lalit Suthar wrote: > We can save that in any django model in ajax() request if possible. > > You can check if you hav

Re: Use previously requested data in another request

2021-12-03 Thread Lalit Suthar
We can save that in any django model in ajax() request if possible. You can check if you have modified `SESSION_COOKIE_AGE` ( https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-SESSION_COOKIE_AGE ) if it is too less that might be the reason. On Fri, 3 Dec 2021 at 16:15, kayhan wrote

Re: How to get a variable from an ajax request and use it in another application in Django?

2021-12-03 Thread kayhan
Hi Sorry, as you said I used the session. But my problem has not been solved yet. I first send a request to Django and save its data with a session. I will send another request to Django later. Here I want to use the data of the previous request. But my code does not work properly. And the value "

Use previously requested data in another request

2021-12-03 Thread kayhan
Hi I first send a request to Django and save its data with a session. I will send another request to Django later. Here I want to use the data of the previous request. But my code does not work properly. And the value "None" appears in the output. Does anyone know what I should do? Thankful def

Re: gettext vs ugettext_lazy

2021-12-03 Thread David Nugent
Correction, Python 2.x support On Fri, Dec 3, 2021 at 8:12 PM David Nugent wrote: > Don't use ugettext*, they are deprecated and no longer exist in 3.x. m > They were for Django 2.x support. > > On Fri, Dec 3, 2021 at 5:54 PM wrote: > >> Hello >> >> Would like to know, what are the difference b

I need orientation on what to do and how to do it (procedure)

2021-12-03 Thread Amor Zamora
I comment that with the PyPDF2 library, I want to read 1 file (.pdf) that is in a folder, take the information from that file and send it to a scrpt, which is processed (I already have the scropt functions done, I put them here) and then I want to save the results in another pdf and that this be

Re: gettext vs ugettext_lazy

2021-12-03 Thread David Nugent
Don't use ugettext*, they are deprecated and no longer exist in 3.x. m They were for Django 2.x support. On Fri, Dec 3, 2021 at 5:54 PM wrote: > Hello > > Would like to know, what are the difference between gettext and > ugettext_lazy? > > When to use each of them? > > -- > You received this mes