Displaying numbers in languages

2023-11-28 Thread אורי
Hi,

Since Speedy Match was only in English, I displayed numbers in the English
format - with commas as thousand separators. For example today it writes:

The total number of active members on the site is 12,221, of which 2,581
members entered the site in the last week.

Now, I translated Speedy Match into other languages, such as French,
German, Spanish, Portuguese and Italian. In these languages I still use the
same number formatting as in English:

Le nombre total de membres actifs sur le site est 12,221, dont 2,581
membres entrés sur le site au cours de la dernière semaine.

Die Gesamtzahl der aktiven Mitglieder auf der Website beträgt 12,221, von
denen 2,581 Mitglieder die Website in der letzten Woche betreten haben.

Is it better to use formats.number_format and display the numbers in each
language differently? Or is it OK to keep it this way? I’m specifically
asking people who speak languages such as French, German, Spanish,
Portuguese, Italian and Dutch. How important it is to change the thousand
separators?

Thanks,
Uri.
אורי
u...@speedy.net

-- 
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://groups.google.com/d/msgid/django-users/CABD5YeEBFAJK_v4er294-GDqLrRFOsiS1bY1rxmdQve3PNXcig%40mail.gmail.com.


Re: Performance profiling Django Channels async consumers

2023-11-28 Thread Shaheed Haque
On Tue, 28 Nov 2023, 15:26 Filbert,  wrote:

> crickets...sigh...
>

Is your question is more about profiling Python (async) code than anything
specifically to do with Django?

If so, then obviously Google is likely a good place to start.

If not, and your issue is more about support for async from tools like the
Django Debug Toolbar, it might be worth being explicit about that.

(FWIW, we faced a similar issue with trying to analyse db usage from
Celery, and ended up brewing some custom tooling loosely based on the
Django Debug Toolbar output).




On Monday, November 27, 2023 at 11:29:37 AM UTC-5 Filbert wrote:
>
>> We are heavily using Django Channels async consumers and haven't found a
>> way instrument for performance profiling.
>>
>> We've tried NewRelic, but per their developers say they don't have
>> support for Django Channels.
>>
>> We run certain websocket connections through Gunicorn, Uvicorn,
>> Channels-Async and are looking for anyway to instrument the code to get a
>> better analysis of what code is hogging the event loop.
>>
>> Advice appreciated.
>>
> --
> 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://groups.google.com/d/msgid/django-users/9e05ae10-ca38-4853-b875-d4594bda394en%40googlegroups.com
> 
> .
>

-- 
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://groups.google.com/d/msgid/django-users/CAHAc2jdNB8xh7Rk8q0uLq%3DfEuoyvA38ZgutMhAdEn6KBrdez%3DA%40mail.gmail.com.


pagination support on async function.

2023-11-28 Thread seokhyun an
hi. 
I have worked for django using pagination on async function
but it seems to having errors cause of default Paginator. 
(like in the counting functions)

is there any plan to make it support async by Paginator itself? 
or is it already has kind of functionalities but I just have not found one? 


-- 
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://groups.google.com/d/msgid/django-users/5294dc17-3950-4cef-95dd-0c87a2370955n%40googlegroups.com.


Re: Project together

2023-11-28 Thread Hafsa Sadaf
Yes,I am Interested please send the group link.

On Mon, Nov 27, 2023 at 7:10 AM okot emmanuel 
wrote:

> add me +256779815657
>
>
>
> On Mon, Nov 27, 2023 at 12:48 AM usman ashir <
> www.usmanashirmu...@gmail.com> wrote:
>
>> yes pls send us the group link. or pls 2348166997172.add my contact
>>
>> On Sun, Nov 26, 2023, 9:38 PM Jay Senkow  wrote:
>>
>>> interested.
>>>
>>> Sent from my iPhone
>>>
>>> On Nov 26, 2023, at 2:46 PM, ekong, emmanuel 
>>> wrote:
>>>
>>> 
>>> I am interested
>>>
>>> Phone ( WhatsApp): +234-8071-505-514
>>>
>>> On Thu, 23 Nov 2023 at 7:13 PM, Youssef Bachraoui <
>>> bachraouiyouss...@gmail.com> wrote:
>>>
 Hi developer i search to make a group on WhatsApp to begin a project
 together anyone interested about that?

 --
 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://groups.google.com/d/msgid/django-users/d5244e76-6bd3-4bde-bf31-a72720bee1acn%40googlegroups.com
 
 .

>>>
>>> *Disclaimer*
>>> This e-mail is intended solely for the named recipient. The information
>>> contained in this message is strictly confidential.
>>>
>>>- If you are not the named recipient, you are hereby notified that
>>>any use, dissemination or reproduction of this document and or its 
>>> content
>>>is prohibited and may be deemed unlawful.
>>>- If you are not the named recipient of this e-mail, please notify
>>>the sender by a return e-mail and delete all copies of it from your
>>>computer and mail.
>>>
>>> Any views expressed in this e-mail are those of the individual sender,
>>> except where the sender specifically states them to be those of Landmark
>>> University , to whom no liability shall be attached
>>> whatsoever.
>>>
>>> Thank you
>>>
>>> --
>>> 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://groups.google.com/d/msgid/django-users/CAAP9wczbDL6n7qW5WARHwGsR8hbVgwV0K%3DdTGJoBqE3aQc4TWA%40mail.gmail.com
>>> 
>>> .
>>>
>>> --
>>> 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://groups.google.com/d/msgid/django-users/ACC804A9-5EF3-4D3A-B11A-6AE171113174%40gmail.com
>>> 
>>> .
>>>
>> --
>> 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://groups.google.com/d/msgid/django-users/CAHNdQhwinzLUgaUvQNfYOnxbXhtk4shxcSn5zz00Kceiz7Zb%2Bw%40mail.gmail.com
>> 
>> .
>>
> --
> 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://groups.google.com/d/msgid/django-users/CAHoGtOznPiHRbXdKqJiGQEUgF0i613_%2Bd3ejk%3Dx17EaOXmM%3DUA%40mail.gmail.com
> 
> .
>

-- 
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://groups.google.com/d/msgid/django-users/CAB1L0Ri4SYEjFCVT6aokBPLWk8OtbavgWmU0s4NtnOtaxB5f3w%40mail.gmail.com.


Re: Performance profiling Django Channels async consumers

2023-11-28 Thread Filbert
crickets...sigh...

On Monday, November 27, 2023 at 11:29:37 AM UTC-5 Filbert wrote:

> We are heavily using Django Channels async consumers and haven't found a 
> way instrument for performance profiling.
>
> We've tried NewRelic, but per their developers say they don't have support 
> for Django Channels.
>
> We run certain websocket connections through Gunicorn, Uvicorn, 
> Channels-Async and are looking for anyway to instrument the code to get a 
> better analysis of what code is hogging the event loop.
>
> Advice appreciated.
>

-- 
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://groups.google.com/d/msgid/django-users/9e05ae10-ca38-4853-b875-d4594bda394en%40googlegroups.com.


Re: Custom User models

2023-11-28 Thread Okkert Joubert
Thanks Ahmed

Please tell me if I'm correct or not in saying the SchoolUser has School as
a foreign key the school will not have to be authenticated with djoser in
order to register for example or login?

On Mon, Nov 27, 2023 at 6:53 PM Ahmed Iftikhar 
wrote:

> # models.py
> from django.contrib.auth.models import AbstractUser
> from django.db import models
>
> class School(models.Model):
> # Your School model fields
>
> class SchoolUser(AbstractUser):
> school = models.ForeignKey(School, on_delete=models.CASCADE)
> # Add other custom fields as needed
> 
> # settings.py
> AUTH_USER_MODEL = 'your_app.SchoolUser'
> DJOSER = {
> 'SERIALIZERS': {
> 'user_create': 'your_app.serializers.CustomUserCreateSerializer',
> # Add other Djoser serializer configurations as needed
> },
> # Add other Djoser configurations as needed
> }
>
> 
> # serializers.py
> from django.contrib.auth import get_user_model
> from rest_framework import serializers
>
> class SchoolUserSerializer(serializers.ModelSerializer):
> class Meta:
> model = get_user_model()
> fields = '__all__'
>
> class SchoolSerializer(serializers.ModelSerializer):
> class Meta:
> model = School
> fields = '__all__'
>
> *
> at the end
> python manage.py makemigrations
> python manage.py migrate
>
> and enjoy
>
> On Mon, Nov 27, 2023 at 8:10 PM Okkert Joubert 
> wrote:
>
>> Good morning all,
>>
>> I made a custom user model for a school, it is currently working with
>> djoser authentication, now what I want to add is for the school to add
>> users, so my School model is a foreignkey in SchoolUser is this possible
>> firstly and secondly can I add the djoser authentication to the SchoolUser
>> model as well
>>
>> --
>> 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://groups.google.com/d/msgid/django-users/2754d7b3-a54a-40d6-9cab-50c0a2dbb812n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/zejReFcayis/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGAxPTwxB46wZrgjeiZZop%3Dnq5Ch-4FLXL6z3UO%3DGQq_5g%3Dueg%40mail.gmail.com
> 
> .
>

-- 
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://groups.google.com/d/msgid/django-users/CAK0teFN0MNzTO9JG06u0HSccmh15wRs81ECMvgOUgnYqJhGceg%40mail.gmail.com.