Feedback Request on Connection Pooling Feature for Django Oracle Backend

2024-09-19 Thread suraj shaw
if you could test this feature and share your thoughts. I’m also eager to hear feedback from other contributors to ensure we’ve covered all bases. With the feature freeze approaching on January 15th, we have some time to make any necessary adjustments. Link to pull request - https://github.com

Re: Improve performance about concurrency request with heavy tasks that make the server freeze and down.

2024-07-23 Thread Chrea Chanchhunneng
4 images >> (including original image) to S3. And it has more functions like `face >> recognition` in this function. But the problem is when I request 5 or more >> requests in the same time the server will freeze and the function on image >> also increase runn

How to solve Access to fetch at 'https://api.amadeus.com/v1/flight-offers' from origin 'http://127.0.0.1:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access contro

2024-04-21 Thread Эля Min
I have this one:from django.middleware.common import MiddlewareMixin from django.http import JsonResponse class CorsMiddleware(MiddlewareMixin): def process_request(self, request): if request.method == "OPTIONS" and "HTTP_ACCESS_CONTROL_REQUEST_METHOD&q

Can Django channel execute multiple consumers run in parallel per request to perform backend calculation

2023-09-06 Thread GP
Hi, Want to know Django channel capability to perform back-end complex calculation by running multiple consumers for one request. I am about to build one back-end calculation system under which for one client request there will be 1 job request and for that 1 job request can have upto 1k

Request for Django for Professionals book.

2023-08-31 Thread ALINDA Fortunate
Hello Team 👋. I am done with Django for beginners. Any one to share with me Django for professionals 4.0 please 🙏🙏🙏. +256774339676 "If you want to live a happy life, tie it to a goal, not to people or things." A graduate of Bachelors Degree of Science in Computer Science of Gulu University.

Request Time - Django - Nginx - Whisper(openai)

2023-06-05 Thread Swelan Auguste
Dear All, I need some help with a project. I am using whisper within a Django application and based on the audio file I am trying to transcribe nginx would give me a request timeout error page but the code still executes in the background and does transcribe. Additionally, If I run the code

Saving data from a post request using nested DRF serializers

2023-04-26 Thread Kimanxo
Here is my problem im gelreat details : https://stackoverflow.com/questions/76112118/django-rest-frameworks-nested-serializers-post-request-foreignkey-error -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: Django audio recording issue: receiving Bad Request error

2023-04-04 Thread Ahmed omar miladi
will >> save a audio file (wav). However, I have receive a bad request error and >> the audio file is not created. >> >> I have posted the code at stack overflow: >> https://stackoverflow.com/q/75853749/21499403 >> >> Can anyone help me please. >> &

Re: Django audio recording issue: receiving Bad Request error

2023-04-04 Thread ritik sahoo
user press the recorder button, > it will direct to record.html with four buttons, Start, Pause, Resume and > Stop. When the user finished recording and hit the Stop button, it will > save a audio file (wav). However, I have receive a bad request error and > the audio file is not cre

Re: Django audio recorder Bad request: /record-audio/

2023-03-28 Thread Yong Zu Yi
Thank you for replying me. However, I still get the error Bad request: /record-audio/. Also, I have a question, is it possible that after recording, it will just save to the database? Because what I have found that the only way to save media files into database is to upload it. Thanks

Django audio recording issue: receiving Bad Request error

2023-03-27 Thread Yong Zu Yi
finished recording and hit the Stop button, it will save a audio file (wav). However, I have receive a bad request error and the audio file is not created. I have posted the code at stack overflow: https://stackoverflow.com/q/75853749/21499403 Can anyone help me please. -- You received this

Request

2023-01-03 Thread Jadhav nandu naik
Hey guys add me in -- 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...@googlegroups.com. To view this discussion on the web visit https://g

Re: Django Request

2022-12-07 Thread Jorge Castro
sive range in performance of a basic function > before some optimisation and after > https://www.toptal.com/python/performance-optimization-testing-django > > Regards > Alexander > > Alexander Neilson > Neilson Productions Limited > > alexan...@neilson.net.nz > 021 329

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-25 Thread Mark Gensler
Try adding your ngrok domain to the list of CSRF_TRUSTED_ORIGINS: https://docs.djangoproject.com/en/4.1/ref/settings/#csrf-trusted-origins E.g. assuming you're using https: CSRF_TRUSTED_ORIGINS = ["https://*.ngrok.io";] On Wednesday, November 23, 2022 at 2:22:14 PM UTC dhana...@gmail.com wrote:

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-23 Thread Nagaraja Tuticorin
Make your database as a public make format of database chmod www-data=www-data ./filename On Wed, 23 Nov, 2022, 7:33 am Chukwudi Onwusa, wrote: > Check your template, immediately after the opening tag add > {% csrf_token %} > If you have it already, kindly check to ensure it's correctly spelt a

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-23 Thread Nagaraja Tuticorin
Make your database as a public make format of database chmod www-data=www-data ./filename On Wed, 23 Nov, 2022, 5:28 am Carlos Roberto, wrote: > Hi everyone! > > I use ngrok to make my projects available in django. I'm having trouble > accessing the admin page. After I enter the username and pas

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-22 Thread Chukwudi Onwusa
Check your template, immediately after the opening tag add {% csrf_token %} If you have it already, kindly check to ensure it's correctly spelt and placed and then restart your server. Best Regards. On Wed, Nov 23, 2022, 00:58 Carlos Roberto wrote: > Hi everyone! > > I use ngrok to make my proj

Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-22 Thread Carlos Roberto
Hi everyone! I use ngrok to make my projects available in django. I'm having trouble accessing the admin page. After I enter the username and password I get the error 403. Has anyone had the same problem and could help me? Regards -- You received this message because you are subscribed to t

Re: Django Request

2022-11-22 Thread Alexander Neilson
Productions Limited alexan...@neilson.net.nz 021 329 681 022 456 2326 On Wed, 23 Nov 2022 at 09:10, nana kwame wrote: > Please how many request (range of numbers of request) can Django process? > > On Tue, 22 Nov 2022 at 14:47, 'Kasper Laudrup' via Django users < > djan

Re: Django Request

2022-11-22 Thread nana kwame
Please how many request (range of numbers of request) can Django process? On Tue, 22 Nov 2022 at 14:47, 'Kasper Laudrup' via Django users < django-users@googlegroups.com> wrote: > On 22/11/2022 12.20, nana kwame wrote: > > Please how many requests can Django process bas

Re: Django Request

2022-11-22 Thread Eric 247ERICPOINTCOM
Good evening, I would like a partner to work on a Django project. It is a social media site for, I have created most of the parts. I just need to implement a few things that I am struggling with. Anyone willing to work with me? *Kind Regards* *Eric Bawakuno | Computer Engineer | Data Analyst *

Re: Django Request

2022-11-22 Thread 'Kasper Laudrup' via Django users
On 22/11/2022 12.20, nana kwame wrote: Please how many requests can Django process based on real test conducted. All of them. Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and st

Django Request

2022-11-22 Thread nana kwame
Please how many requests can Django process based on real test conducted. -- 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...@googlegroups.c

Re: Random different values on each request

2022-11-19 Thread RANGA BHARATH JINKA
NEWID()) > > views.py: > class GetEssayQuestion(APIView): > def get(self, request): > data = Quizbank.objects.all().filter(status=1, > section=5).order_by('?')[:2] > serializer = QuizbankSerializer(data, many=True) > return Response(serializer.

Random different values on each request

2022-11-17 Thread cs.s...@gmail.com
ll getting the same response. (SQL query: SELECT TOP 2 * FROM QuizBank ORDER BY NEWID()) views.py: class GetEssayQuestion(APIView): def get(self, request): data = Quizbank.objects.all().filter(status=1, section=5).order_by('?')[:2] serializer = QuizbankSerial

Re: request to post UnboundLocalError

2022-10-24 Thread Yusuf Olamilekan muktar
Hello, The variable 'contact' on line 27 is messing with python as the model name 'contact' is not being recognized but instead, the variable is being recognized. I'd advise you to change the variable name. i.e. contact = contact() to contact_var = contact(...) contact_var.save() [image: Ma

Re: request to post UnboundLocalError

2022-10-23 Thread Jitendra kumar Patra
Declare the contact variable before the return statement On Mon, 24 Oct, 2022, 00:52 Deepak kumar, wrote: > please check to pdf and send to my email dk9284...@gmail.com > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe fro

Re: login()/logout() with valid user and request not attaching user to session

2022-10-22 Thread Jordan Edmunds
d down the underlying issue to be that the cookies and CSRF tokens were not being transmitted on request/responses - this was an issue in my frontend. Now (almost) fixed. On Sat, Oct 22, 2022 at 11:05 AM Jordan wrote: > So I have some rather bizarre behavior on my hands - I am trying to

login()/logout() with valid user and request not attaching user to session

2022-10-22 Thread Jordan
nd then passes it to django.contrib.auth.login() along with the request. No exceptions are thrown inside the login() function - which I verified by stepping through it line-by-line with breakpoints. I am using the default runserver command as my django server. Where is the actual code in the login() function

Re: Job Request As A Software Developer

2022-10-19 Thread tomaž Ovsenjak
Greetings! I present to you a new platform for you to find django gigs/job https://djangodevs.com You can: 1. create developer profile 2. show off your work 3. get contacted by businesses Join now at https://djangodevs.com Br On Friday, September 2, 2022 at 4:50:48 AM UTC+2 go...@gobidas

Re: Job Request As A Software Developer

2022-09-01 Thread Gobi Dasu
Hi Onjomba, I noticed you have a strong, in-demand skill set. We'd love to have you join our talent network of software developers, data scientists, and designers, called LD Talent - ldtalentwork.com. By joining LD Talent, you’ll have the following benefits: - Explore remote opportunities: both c

Re: Bad Request 400 in Django

2022-09-01 Thread Marcella Carvalho
Paste here your settings code On Thu, Sep 1, 2022, 4:14 PM Eric smith wrote: > I have some issues in running django server. > > System check identified no issues (0 silenced). > September 01, 2022 - 10:58:47 > Django version 4.0.1, using settings 'project.settings' > Starting development server

Re: Bad Request 400 in Django

2022-09-01 Thread Jishnu Ramachandran
🤣🤣 On Thu, 1 Sep, 2022, 11:02 pm Lakshyaraj Dash, wrote: > What ??? It's September not july > > On Thu, Sep 1, 2022, 22:29 subin wrote: > >> I will look forward to meeting you on July 11 >> >> On Thu, Sep 1, 2022 at 4:14 PM Eric smith >> wrote: >> >>> I have some issues in running django serve

Re: Bad Request 400 in Django

2022-09-01 Thread Lakshyaraj Dash
What ??? It's September not july On Thu, Sep 1, 2022, 22:29 subin wrote: > I will look forward to meeting you on July 11 > > On Thu, Sep 1, 2022 at 4:14 PM Eric smith > wrote: > >> I have some issues in running django server. >> >> System check identified no issues (0 silenced). >> September 01

Re: Bad Request 400 in Django

2022-09-01 Thread 'Kasper Laudrup' via Django users
erver with CTRL-BREAK. [01/Sep/2022 10:58:57] "GET / HTTP/1.1" 400 143 [01/Sep/2022 10:58:58] "GET /favicon.ico HTTP/1.1" 400 143 Please help me if you are expert on it. HTTP 400 error means the client sent a request the server couldn't understand. What the client

Re: Bad Request 400 in Django

2022-09-01 Thread subin
I will look forward to meeting you on July 11 On Thu, Sep 1, 2022 at 4:14 PM Eric smith wrote: > I have some issues in running django server. > > System check identified no issues (0 silenced). > September 01, 2022 - 10:58:47 > Django version 4.0.1, using settings 'project.settings' > Starting d

Re: Bad Request 400 in Django

2022-09-01 Thread subin
Hi On Thu, Sep 1, 2022 at 4:25 PM Lipede Tope wrote: > Check your code > > On Thu, Sep 1, 2022, 4:13 PM Eric smith wrote: > >> I have some issues in running django server. >> >> System check identified no issues (0 silenced). >> September 01, 2022 - 10:58:47 >> Django version 4.0.1, using setti

Re: Bad Request 400 in Django

2022-09-01 Thread Lipede Tope
Check your code On Thu, Sep 1, 2022, 4:13 PM Eric smith wrote: > I have some issues in running django server. > > System check identified no issues (0 silenced). > September 01, 2022 - 10:58:47 > Django version 4.0.1, using settings 'project.settings' > Starting development server at http://127.

Bad Request 400 in Django

2022-09-01 Thread Eric smith
I have some issues in running django server. System check identified no issues (0 silenced). September 01, 2022 - 10:58:47 Django version 4.0.1, using settings 'project.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. [01/Sep/2022 10:58:57] "GET / HT

Re: Job Request As A Software Developer

2022-09-01 Thread R V Tulasi
My company recruting Pls share cv to 9966342766 through whatsapp Python developer vacancy On Thu, Sep 1, 2022, 1:09 PM Onjomba Felix wrote: > Hae, > I am humbly requesting if you have any job or referral to a job just tell > me bellow is my Cover Letter and CV. > [image: WhatsApp Image 2022-08-3

Re: Job Request As A Software Developer

2022-09-01 Thread Kunal Solanke
I don't have any job openings in mind, but I'd suggest you make your CV again. 1. Keep it 2 pages tops(this is important) 2. No need for about keep it in your linkdein 3. Create Education, Experience and projects and Achievements. 4. Include top 2-3 experiences and projects to make it shorters 5.

Re: Bug Request!

2022-07-25 Thread Ryan Nowakowski
You'll definitely want to include the actual exceptions and warnings that are occurring in your bug report. On July 25, 2022 9:05:53 AM CDT, Ken Booo wrote: >Here, I caught a one bug on Django-->4.0.6 >There is no argumented support and base_dir is having exemptions causing >warnings![image: Wha

Bug Request!

2022-07-25 Thread Ken Booo
Here, I caught a one bug on Django-->4.0.6 There is no argumented support and base_dir is having exemptions causing warnings![image: WhatsApp Image 2022-07-18 at 11.59.01 AM.jpeg] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Re: Does Django care about max_query_params? [feature request]

2022-07-05 Thread Jason
https://github.com/googleapis/python-spanner-django/pull/774 seems like an open PR is addressing this. On Tuesday, July 5, 2022 at 6:13:32 AM UTC-4 gurov...@gmail.com wrote: > It's Cloud Spanner. We're using `django_spanner` as a 3rd party connector: > https://github.com/googleapis/python-spa

Re: Does Django care about max_query_params? [feature request]

2022-07-05 Thread Ilya Gurov
It's Cloud Spanner. We're using `django_spanner` as a 3rd party connector: https://github.com/googleapis/python-spanner-django On Tuesday, June 28, 2022 at 11:36:08 AM UTC+4 Jason wrote: > > What db are you using? This might also be an issue for your db connector > lib > On Monday, June 27, 20

Re: Does Django care about max_query_params? [feature request]

2022-06-28 Thread Jason
What db are you using? This might also be an issue for your db connector lib On Monday, June 27, 2022 at 10:49:40 AM UTC-4 gurov...@gmail.com wrote: > Hi, all! > > Gotta problem with the number of query params. We're using a backend, > which connects to a cloud database, and at some point we s

Does Django care about max_query_params? [feature request]

2022-06-27 Thread Ilya Gurov
Hi, all! Gotta problem with the number of query params. We're using a backend, which connects to a cloud database, and at some point we suddenly started getting such an error: *Number of parameters in query exceeds the maximum allowed limit of 950* Appearing on this step: *django/django/cont

hello everyone please can someone help me with my problem is very important please Environment: Request Method: GET Request URL: http://127.0.0.1:8000/user/ Django Version: 4.0.4 Python Version: 3

2022-04-30 Thread ray nkamwa
ogle.com/d/msgid/django-users/afc98569-1c64-4322-a533-d62a1a297115n%40googlegroups.com. Environment: Request Method: GET Request URL: http://127.0.0.1:8000/user/ Django Version: 4.0.4 Python Version: 3.10.4 Installed Applications: ['django.contrib.admin',

Re: request.POST.getlist('xxx') only has one value in ajax request for many2many

2022-01-17 Thread Julio Cojom
El lun., 17 de enero de 2022 11:52 a. m., Campbell McKilligan < campb...@dxclabs.com> escribió: > Yeah - I am looping. I just get one iteration which is the last item even > though the request body has the same key repeated. > > For example, this code only prints one item, wherea

Re: request.POST.getlist('xxx') only has one value in ajax request for many2many

2022-01-17 Thread Campbell McKilligan
Yeah - I am looping. I just get one iteration which is the last item even though the request body has the same key repeated. For example, this code only prints one item, whereas for a different form elsewhere, it would iterate through all the identical keys: print(self.request.__dict__

Re: ModelMultipleChoiceField - different number of values in request _body and _post

2022-01-17 Thread Campbell McKilligan
nd+what+you're+looking+for%3F%3C%2Fh2%3E%0A%3Cp%3EGive+us+a+call+at%3A+555+%3C%2Fp%3E%0A%3Cp%3EEmail+us+at%3A+%3Ca+href%3D%22mailto%3Ahello%40dxclabs.com%22%3Ehello%40dxclabs.com%3C%2Fa%3E%3C%2Fp%3E On Monday, 17 January 2022 at 05:22:01 UTC chau...@gmail.com wrote: > Information for y

Re: ModelMultipleChoiceField - different number of values in request _body and _post

2022-01-16 Thread Patrice Chaula
Information for your post request is missing. Paste all the data that is sent when making a post request. That way everyone gets the idea of what you are trying to achieve. On Sun, Jan 16, 2022, 10:22 PM Campbell McKilligan wrote: > Hi, > I have an ajax request which submits multiple val

Re: request.POST.getlist('xxx') only has one value in ajax request for many2many

2022-01-16 Thread Jason
xample: > Lists = request.getlist('item') > For list in Lists: > . > > > On Sun, Jan 16, 2022, 9:30 PM Campbell McKilligan > wrote: > >> Hi, >> >> Using Django 3.2 and Py 3.9 >> >> I have an ajax request which submits multiple values

Re: request.POST.getlist('xxx') only has one value in ajax request for many2many

2022-01-16 Thread Odigiri Richard
You might want to loop through the list Example: Lists = request.getlist('item') For list in Lists: . On Sun, Jan 16, 2022, 9:30 PM Campbell McKilligan wrote: > Hi, > > Using Django 3.2 and Py 3.9 > > I have an ajax request which submits multiple values for a

request.POST.getlist('xxx') only has one value in ajax request for many2many

2022-01-16 Thread Campbell McKilligan
Hi, Using Django 3.2 and Py 3.9 I have an ajax request which submits multiple values for a field to an UpdateView. In the request dict body I see both values (in this case, for the pool_list column): '_body': b"csrfmiddlewaretoken=z...h&...&key=...&expiry_datetim

ModelMultipleChoiceField - different number of values in request _body and _post

2022-01-16 Thread Campbell McKilligan
Hi, I have an ajax request which submits multiple values to an UpdateView. In the request dict body I see both values (in this case, for the pool_list column): '_body': b"csrfmiddlewaretoken=z...h&...&key=...&expiry_datetime=&overflow=555& *pool_list=5

Re: Eliminating inter-request race conditions

2022-01-08 Thread Nick Farrell
gh in order to detect that > something changed between the old version of the model (as it was when the > user started editing it) and the current version (at the time the POST > request arrives). This would roughly correspond to a version number without > requiring an explicit field o

Request result update only if I change even one character... Strange... :s

2022-01-08 Thread Sébastien Denooz
calculate the total amount direct in the method user in the request, all is good. :/ Totaly incomprehensible :s *Details:* - I have 2 applications: One manages students, another manages payments for them. - In my payment model, I have this function : class Payment(SoftDeleteObject, models.Model

Re: Eliminating inter-request race conditions

2021-12-31 Thread Carsten Fuchs
T': > form = SomeForm(request.POST, initial=init) > ... > > Note the `initial` parameter: It is used just as it is in the GET > request. This allows you to use `form.changed_data` and `form.has_changed()` > in form validation. > > But where does "in

Re: Eliminating inter-request race conditions

2021-12-31 Thread Nick Farrell
Good to hear from you Carsten. Thanks in advance for your comments. I'll see what I can address now: > > > *2)* Not being able to safely lock a model/queryset beyond the lifetime > of the request. > I don't quite understand this. It sounds like pessimistic locking? C

Re: Eliminating inter-request race conditions

2021-12-31 Thread Carsten Fuchs
, not only with individual forms. Am 27.12.21 um 06:36 schrieb Nick Farrell: > *The problems *(from highest to lowest priority)*:* > [...] > *2)* Not being able to safely lock a model/queryset beyond the lifetime of > the request. I don't quite understand this. It sounds like

Re: Eliminating inter-request race conditions

2021-12-28 Thread Nick Farrell
I'm writing this here to get a sense of what the Django > community sees in this: is this a niche problem, is it shared by a few > others, or is the lack of these features a fundamental overnight in the > core Django product? > > > > *The problems *(from highest to lowes

Re: Eliminating inter-request race conditions

2021-12-28 Thread Carsten Fuchs
ems *(from highest to lowest priority)*:* > * > * > *1)* a form is rendered, the data is changed by a different task/request, > then the form is submitted, overwriting the recent changes. > > Whenever models can be modified by multiple users (or even the same user in > different

Eliminating inter-request race conditions

2021-12-27 Thread Nick Farrell
product? *The problems *(from highest to lowest priority)*:* *1)* a form is rendered, the data is changed by a different task/request, then the form is submitted, overwriting the recent changes. Whenever models can be modified by multiple users (or even the same user in different windows/tabs o

Re: Can't able to accept the friend request in my django website

2021-12-07 Thread Bazil M H
Please format your question correctly so that someone can understand that. Then only people can answer your question. On Friday, 3 December 2021 at 05:57:22 UTC+5:30 Kasper Laudrup wrote: > https://www.propublica.org/nerds/how-to-ask-programming-questions > -- You received this message because

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

2021-12-04 Thread David Nugent
ayhan wrote: > 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. &

Re: Use previously requested data in another request

2021-12-04 Thread kayhan
23:19, kayhan wrote: > >> 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: >> >&

Re: Use previously requested data in another request

2021-12-04 Thread Lalit Suthar
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 h

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 che

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

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? Tha

Re: Can't able to accept the friend request in my django website

2021-12-02 Thread Kasper Laudrup
https://www.propublica.org/nerds/how-to-ask-programming-questions -- 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...@googlegroups.com. To v

Can't able to accept the friend request in my django website

2021-12-02 Thread Rohan buks
I'm getting the following error: Environment: Request Method: GET Request URL: http://127.0.0.1:8000/users/friend-request/accept/7/ Django Version: 2.1 Python Version: 3.8.10 Installed Applications: ['users.apps.UsersConfig', 'feed.apps.FeedConfig', &

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

Re: Use previous requested data in the new request

2021-12-01 Thread Lalit Suthar
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 view and then > with a post request, send the form information to the same view and use the > data sent in the previous requ

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

2021-12-01 Thread kayhan
x27;s session in the first > view, then retrieve it in the subsequent view(s). > > Note that `request.is_ajax` is deprecated and does not even exist anymore > in Django 3.x. You can guess that from other info, but you should probably > use a > different view for handling the aja

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

2021-11-30 Thread David Nugent
that `request.is_ajax` is deprecated and does not even exist anymore in Django 3.x. You can guess that from other info, but you should probably use a different view for handling the ajax request in any case, for clarity and maintainability. The response data would usually use a different format (json vs text

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

2021-11-30 Thread kayhan
Sorry I did not ask the question well. Question: 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

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-29 Thread David Nugent
A little more context would help, "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

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-user

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread DJANGO DEVELOPER
gt;>>>>>> >>>>>>> On Tue, 23 Nov 2021 at 10:21, DJANGO DEVELOPER < >>>>>>> abubakarbr...@gmail.com> wrote: >>>>>>> >>>>>>>> okay let me explain. >>>>>>>> I have trai

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread DJANGO DEVELOPER
lt; >>>>>> abubakarbr...@gmail.com> wrote: >>>>>> >>>>>>> okay let me explain. >>>>>>> I have trained models which tells us that which website is >>>>>>> legitimate or which website is not legitimate

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread Duncan Santiago
gt;>> django web app using rest api. >>>>>> I tested the API on postman and working. >>>>>> now I want to get the result on front end using HTML CSS and >>>>>> javascript. so how can I achieve it? >

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread DJANGO DEVELOPER
> now I want to get the result on front end using HTML CSS and >>>>> javascript. so how can I achieve it? >>>>> >>>>> On Tue, Nov 23, 2021 at 10:16 PM Duncan Santiago < >>>>> duncansantiag...@gmail.com> wrote: >>>>>

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread Duncan Santiago
> javascript. so how can I achieve it? >>>> >>>> On Tue, Nov 23, 2021 at 10:16 PM Duncan Santiago < >>>> duncansantiag...@gmail.com> wrote: >>>> >>>>> hello, am not sure what the question is. Kindly elaborate. >>&g

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread DJANGO DEVELOPER
>>> On Tue, Nov 23, 2021 at 10:16 PM Duncan Santiago < >>> duncansantiag...@gmail.com> wrote: >>> >>>> hello, am not sure what the question is. Kindly elaborate. >>>> >>>> On Tue, 23 Nov 2021 at 09:19, DJANGO DEVELOPER >>&

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread Duncan Santiago
>> >>> hello, am not sure what the question is. Kindly elaborate. >>> >>> On Tue, 23 Nov 2021 at 09:19, DJANGO DEVELOPER >>> wrote: >>> >>>> I am working on a django based project in which I have integrated ML >>>> train

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread Duncan Santiago
on a django based project in which I have integrated ML >>> trained models to check if a https url is legitimate or not. for this I >>> need javascript or ajax to call a rest api for my form in which I want to >>> send a post request so that I can check if a https url is leg

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread DJANGO DEVELOPER
I have integrated ML >> trained models to check if a https url is legitimate or not. for this I >> need javascript or ajax to call a rest api for my form in which I want to >> send a post request so that I can check if a https url is legitimate or not. >> *NOTE: My code is runni

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread Duncan Santiago
to call a rest api for my form in which I want to > send a post request so that I can check if a https url is legitimate or not. > *NOTE: My code is running successfully and giving correct answers on > postman.* so just want to integrate it with my HTML form. > *M

AJAX or Javascript POST request for Django form

2021-11-23 Thread DJANGO DEVELOPER
I am working on a django based project in which I have integrated ML trained models to check if a https url is legitimate or not. for this I need javascript or ajax to call a rest api for my form in which I want to send a post request so that I can check if a https url is legitimate or not

Quit the server with CTRL-BREAK. code 400, message Bad request version ('ÚÚ\x13\x01\x13\x02\x13\x03À+À/

2021-09-29 Thread emmanuel odor
Hi , I keep having this error whenever i run the python manage.py runserver Django version 3.2.7, using settings 'crm.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. code 400, message Bad request version ('ÚÚ\x13\x01\x13\x02\x13\x

Re: Surpress Daphne request logging levels

2021-08-23 Thread Jason
daphene runs at the same infra layer level as uwsgi/gunicorn so you need to define the log level at process init. Django has no control over this. On Friday, August 20, 2021 at 12:05:17 PM UTC-4 benny.s...@gmail.com wrote: > I am trying to surpress the log output from daphne. > > example log: >

Surpress Daphne request logging levels

2021-08-20 Thread Skullb0ne
I am trying to surpress the log output from daphne. example log: Aug 20 08:33:53 admin daphne[663290]: 127.0.0.1:35638 - - [20/Aug/2021:08:33:50] "PATCH /api/v1/worker/59/" 200 168 logger 'django.request' seem to have no effect on it. -- You received this message because you are subscribed

Feature request for django permissions

2021-06-12 Thread wael muhammed
I have a projects with multi branches . I want to make permissions according to branch record. I couldn't add customize django permissions model to make foreign key from branch model. Look here for more

Re: In immediate help of a long time pending request, kindly help.

2021-06-04 Thread Aritra Ray
Hello I tried this but I'm still seeing the list of cart items. Can you tell me where I am going wrong? Regards, Aritra On Tue, 1 Jun 2021 at 21:23, Joel Tanko <7thog...@gmail.com> wrote: > If you want to show the items relative to the currently logged in user, > try adding this option => limit

Re: In immediate help of a long time pending request, kindly help.

2021-06-01 Thread Aritra Ray
Right, will try and let you know. On Tue, 1 Jun, 2021, 9:23 pm Joel Tanko, <7thog...@gmail.com> wrote: > If you want to show the items relative to the currently logged in user, > try adding this option => limit_choices_to={'user' : 'user'}, to your items > field in models.py > > > > On Tuesday, 1

In immediate help of a long time pending request, kindly help.

2021-06-01 Thread Joel Tanko
If you want to show the items relative to the currently logged in user, try adding this option => limit_choices_to={'user' : 'user'}, to your items field in models.py On Tuesday, 1 June 2021, Aritra Ray wrote: > Right, thank you so much. > > Regards. > > On Tue, 1 Jun, 2021, 8:27 pm oba stephe

  1   2   3   4   5   6   7   8   9   10   >