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

2021-11-29 Thread kayhan
How to get a variable from an ajax request and use it in another application in Django? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...

Re: Developing django apps in jupyter

2021-11-29 Thread kayhan
Hi, I am using the free version of Paycharm. VS code is also good and is smaller than Paycharm. On Mon, Nov 29, 2021 at 4:53 PM 'MH' via Django users < django-users@googlegroups.com> wrote: > Hi everyone > > I have built a few django apps, but on a very basic level and only for my > own usage. Li

Use previous requested data in the new request

2021-11-30 Thread kayhan
Hi How to first send some data with an Ajax request to Django view and then with a post request, send the form information to the same view and use the data sent in the previous request (Ajax request) in the second request ? def planing(request): if request.is_ajax(): #

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

2021-11-30 Thread kayhan
ot;use it in another application" is a > little vague. The backend the API request and can pretty much do anything > you need in the corresponding view at that point but should endeavour to > return an appropriate response ASAP. > > On Tue, Nov 30, 2021 at 12:35 AM kayhan

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

2021-12-01 Thread kayhan
x request in any case, for clarity and > maintainability. The response data would usually use a different format > (json vs text/html). > > Regards, David > > On Wed, Dec 1, 2021 at 6:04 AM kayhan wrote: > >> Sorry I did not ask the question well. >> Question: >

Re: Use previous requested data in the new request

2021-12-02 Thread kayhan
information that was previously submitted for processing. On Thu, Dec 2, 2021 at 10:09 AM Lalit Suthar wrote: > why can't we make a post request directly > > On Wed, 1 Dec 2021 at 00:24, kayhan wrote: > >> Hi >> How to first send some data with an Ajax request to Django

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: How to get a variable from an ajax request and use it in another application in Django?

2021-12-03 Thread kayhan
nt("latitude, longitude = ", latitude,longitude) Output: latitude, longitude = 34.801595 48.499574 latitude, longitude = 34.801595 48.499574 latitude, longitude = None None On Wed, Dec 1, 2021 at 6:37 PM kayhan wrote: > Thank you David🙏🙏 > > On Wed, Dec 1, 2021 at 3:56 AM David Nuge

Re: Use previously requested data in another request

2021-12-03 Thread kayhan
ck 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: > >> Hi >> I first send a request to Django

Re: Use previously requested data in another request

2021-12-04 Thread kayhan
Thankyou 🙏 On Sat, Dec 4, 2021 at 11:33 AM Lalit Suthar wrote: > tried to look into the docs but couldn't find a reason. > you can go through this page to find out any possible reason > https://docs.djangoproject.com/en/dev/topics/http/sessions/ > > On Fri, 3 Dec 2021 at

Re: Django 4.0 released

2021-12-07 Thread kayhan
Okay, thank you. I really like open source technologies On Tue, Dec 7, 2021 at 8:00 PM Noel Simela wrote: > Great stuff, > > On Tue, Dec 7, 2021 at 11:28 AM Mariusz Felisiak < > felisiak.mari...@gmail.com> wrote: > >> Details are available on the Django project weblog: >> >> https://www.djangopr

Re: Django security releases issued: 3.2.10, 3.1.14, and 2.2.25

2021-12-07 Thread kayhan
Okay, thank you. I really like open source technologies On Tue, Dec 7, 2021 at 11:12 AM Mariusz Felisiak wrote: > Details are available on the Django project weblog: > > https://www.djangoproject.com/weblog/2021/dec/07/security-releases/ > > -- > You received this message because you are subscri