Re: Help to implement join query in django orm

2022-07-25 Thread Mihir Patel
is anyone having login issue? , i am unable to authenticate a user in my
website

On Sun, Jul 24, 2022 at 10:37 PM Jitendra kumar Patra <
jitendrapatra...@gmail.com> wrote:

> Ping me 7008080545
>
> On Fri, 22 Jul, 2022, 12:16 Avi shah,  wrote:
>
>> I have two tables
>> Tbl 1
>> &
>> Tbl 2
>>
>> I need to connect the two tables using a join
>>
>>
>> Thanks and regards,
>> Avi shah
>>
>> --
>> 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/CALa7AFNmoep5MT3MwoYn1ZF0S%3DENPUdVAO-_3EmVyAzCub_Jkg%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/CAOAROf%3DgMPbSQ37f81A0rpRr7NgiUFF8ZyTsF8bZ-KG9Sgh%3DkA%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/CAC10kRFL%3D1a6T0-DG%3DZTsBugJa2_iFf-itHjSwAc9-2vHOnB7g%40mail.gmail.com.


Re: Help to implement join query in django orm

2022-07-25 Thread 'Amitesh Sahay' via Django users
10. How to perform join operations in django ORM? — Django ORM Cookbook 2.0 
documentation (agiliq.com)



Try this 

On Monday, 25 July, 2022 at 01:18:44 pm IST, Mihir Patel 
 wrote:  
 
 is anyone having login issue? , i am unable to authenticate a user in my 
website
On Sun, Jul 24, 2022 at 10:37 PM Jitendra kumar Patra 
 wrote:

Ping me 7008080545
On Fri, 22 Jul, 2022, 12:16 Avi shah,  wrote:

I have two tables Tbl 1 & Tbl 2 
I need to connect the two tables using a join 

Thanks and regards, Avi shah 

-- 
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/CALa7AFNmoep5MT3MwoYn1ZF0S%3DENPUdVAO-_3EmVyAzCub_Jkg%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/CAOAROf%3DgMPbSQ37f81A0rpRr7NgiUFF8ZyTsF8bZ-KG9Sgh%3DkA%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/CAC10kRFL%3D1a6T0-DG%3DZTsBugJa2_iFf-itHjSwAc9-2vHOnB7g%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/1973455060.1368718.1658735565276%40mail.yahoo.com.


Queryset for get all objects with count of some of them.

2022-07-25 Thread Sencer Hamarat
Hi,

Is there a way to get all model objects, but including count of some of
them within one db transaction.

Say, I have this model:

class AModel(models.Model):
field_choices = (
(0, "a"),
(1, "b"),
(2, "c")
)

field_one = models.CharField(max_length=32)
field_two = models.IntegerField(coices=field_choices, default=0)

And this model has 100's of records with mixed choices.

I want to fetch all model objects bu also included count of field_choice
equals "c" ones which means field_two equals to 1

Is that can be fetched by query like this?

AModel.objects.all(
).annotate(
c_count=Count(
Amodel.objects.filter(field_two=1).count()
)
)



Saygılarımla,
Sencer HAMARAT

-- 
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/CACp8TZhJhroy24aL38C8yJ0k1t_CdF8jNxF78yG_fY5%3DX08xEQ%40mail.gmail.com.


hello users

2022-07-25 Thread Aliyu Muazu
i'm currently new here, any guide up on where to start.
thanks

-- 
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/522cf16d-148c-4291-baa8-c99577f103fcn%40googlegroups.com.


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 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/CAGiSraCtPC2oHsXL2EDy%3DhXFFt_4bPDpHrFz0RR-UzJb0wZmRQ%40mail.gmail.com.


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: 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 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/CAGiSraCtPC2oHsXL2EDy%3DhXFFt_4bPDpHrFz0RR-UzJb0wZmRQ%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/3482F39B-1437-4F43-829A-B970D1912180%40fattuba.com.


Re: Google Authentication code

2022-07-25 Thread Ryan Nowakowski
Your question is a little unclear but I'm assuming that you are trying to add 
Google authentication to your Django project. I've used:
 https://python-social-auth.readthedocs.io/en/latest/

...with good results in the past. I've also heard good things about:

https://django-allauth.readthedocs.io/en/latest/

... but I've never actually used it.

On July 20, 2022 8:03:20 AM CDT, Ankit Chaurasia  
wrote:
>Hello Dev,
>Can anyone send me Google Authentication code or any exp ?
>
>-- 
>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/8aa229d0-3f5e-48b0-b02c-4a742bf273c8n%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/E5EC68C7-40D1-408D-B8B2-6FA88F9CFA73%40fattuba.com.