Re: Urgent

2021-03-01 Thread Class Udeh
Hello, Make use of restApi router which will give you the crud url and in ur front end pass the url and add and ID to the url using axios.delete("url/${I'd}, token of the user) Get Outlook for Android From: django-users@googlegroups.com o

Re: Urgent

2021-03-01 Thread Dylan Reinhold
Don't put urgent as your subject if you don't want people to just block you future emails. Dylan On Mon, Mar 1, 2021, 4:16 PM Aman Khan wrote: > How to make delete request to API from the frontend, i typed the localhost > URL for API but it is redirecting me to the browsable API but by the > po

save() in a loop. (Data Migrations example).

2021-03-01 Thread konstanti...@gmail.com
I'm wondering about this code snippet from the documentation for person in Person.objects.all(): person.name = '%s %s' % (person.first_name, person.last_name) person.save() This looks like the N+1 Query problem b

Sum total by date

2021-03-01 Thread linsa...@gmail.com
My Model class Expense(models.Model): date = models.DateField("Date", default=now) department = models.CharField( max_length=200) #employee = models.ForeignKey(to=User, on_delete=models.CASCADE) employee = models.CharField( max_length=200) transactionId = models.CharField(max

Django vs Spring decision

2021-03-01 Thread Jan-Marten de Jong
Dear Django users, I am in the process of deciding the architecture of a new Web application and I am considering Django or Spring. Would appreciate some feedback on why Django would be a better choice than the Spring Framework. I had quite some experience with JAVA but at the Universities t

Urgent

2021-03-01 Thread Aman Khan
How to make delete request to API from the frontend, i typed the localhost URL for API but it is redirecting me to the browsable API but by the postman, the data is successfully deleted, please someone help me out -- You received this message because you are subscribed to the Google Groups "Dj

Re: Log out all sessions for current user logged in

2021-03-01 Thread Ryan Nowakowski
You might need to call get_decoded then flush on that. https://docs.djangoproject.com/en/3.1/topics/http/sessions/ On February 28, 2021 11:48:51 PM CST, Salima Begum wrote: >New code for logging out all sessions of logged in users. > >``` > ># Logout all devices in account security page. >def l