Re: Combine Existing React App with Existing Django App

2022-08-03 Thread Lalit Suthar
you can watch this https://www.youtube.com/watch?v=w8SQ8beafiQ On Thu, 4 Aug 2022 at 06:09, Abdul Qoyyuum wrote: > Yes it can be done. Django to provide API endpoints. React app to connect > to those API endpoints. > > Abdul Qoyyuum Bin Haji Abdul Kadir > System Engineer at Card Access Services

Models Culculations

2022-08-03 Thread tech george
Hello, Please help with the below, I am trying to get dispense_quantity from Dispense Model and subtract it from the quantity on Stock Model. Then after that get something like this; @property def closing_stock(self): return (self.quantity - self. quantity_issued ) class Stock(models.Mod

Re: Combine Existing React App with Existing Django App

2022-08-03 Thread Abdul Qoyyuum
Yes it can be done. Django to provide API endpoints. React app to connect to those API endpoints. Abdul Qoyyuum Bin Haji Abdul Kadir System Engineer at Card Access Services HP: +673 720 8043 On Thu, Aug 4, 2022, 8:38 AM Lightning Bit < thelegendofearthretu...@gmail.com> wrote: > Is it possible t

Combine Existing React App with Existing Django App

2022-08-03 Thread Lightning Bit
Is it possible to combine an existing React App with an existing Django App? -- 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...@googlegroup

Re: Potential admin bug

2022-08-03 Thread Adebileje Nurudeen
I'll get back to you On Wed, Aug 3, 2022, 8:37 PM Ross Meredith wrote: > It's more likely a set up problem than a bug I'd have thought. > > If it helps here is the relevant code - > https://github.com/django/django/blob/main/django/contrib/admin/options.py#L132 > . > > def response_add is the me

Re: Potential admin bug

2022-08-03 Thread Adebileje Nurudeen
Okay... So what exactly do you need on it? So I can just fix it On Wed, Aug 3, 2022 at 7:09 PM Fab wrote: > Hey, > > In the admin when clicking "add model +" I fill out the fields to create > my item then when I click "Save and add another" or "Save and continue > editing" it redirects back to t

Erro em uma consulta Sqlite3

2022-08-03 Thread Alvaro Teixeira Silva
Bom dia amigos, estou desenvolvendo um blog e me deparei com um erro em uma consulta, vou mandar o trecho do codigo onde esta o erro: def get_queryset(self): qs = super().get_queryset() qs = qs.order_by('-id') qs = qs.annotade( numero_comentarios=Count(

Re: Potential admin bug

2022-08-03 Thread Ross Meredith
It's more likely a set up problem than a bug I'd have thought. If it helps here is the relevant code - https://github.com/django/django/blob/main/django/contrib/admin/options.py#L132 . def response_add is the method which determines what the response to use after a successful addition. On Wed, A

Potential admin bug

2022-08-03 Thread Fab
Hey, In the admin when clicking "add model +" I fill out the fields to create my item then when I click "Save and add another" or "Save and continue editing" it redirects back to the model list view even though the item was added successfully. If I click back on to the item to edit it the butto

Django + uvicorn poor performance

2022-08-03 Thread Marcin Szpulak
I'm testing Django asgi performance using two very simple views. I'm running gunicorn and uvicorn in such a manner: 1. gunicorn core.wsgi --workers=1 --threads=1 --access-logfile=- core.wsgi:application uvicorn --workers 1 core.asgi:application 2. uvicorn --workers 1 core.asgi:application Vi

Re: Generating Calendar files for iPhone and Android with Pthon3/django

2022-08-03 Thread lone...@gmail.com
well well well. Look what I found. https://ical.marudot.com/ I played around with the site a little bit and it generated what I was looking for. I was looking for a data structure for the Reminder feature of an Event object. What I am doing in my own code is just one long string with vari

Django 4.1 released

2022-08-03 Thread Carlton Gibson
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2022/aug/03/django-41-released/ -- 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 e

Re: Generating Calendar files for iPhone and Android with Pthon3/django

2022-08-03 Thread Christian Ledermann
icalendar is tried and tested and feature complete. OTOH if you want just to serve the iCal files from Google or Apple you don't even need to parse then, just pass them on? On Tue, 2 Aug 2022 at 15:48, lone...@gmail.com wrote: > I found: https://pypi.org/project/icalendar/. Are there any others

Django security releases issued: 4.0.7 and 3.2.15.

2022-08-03 Thread Carlton Gibson
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2022/aug/03/security-releases/ -- 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 em