Re: please help me to solve

2022-07-26 Thread Chelsea Fan
thanks bro

On Wed, Jul 27, 2022 at 7:36 AM Abdul Qoyyuum 
wrote:

> This is a Django group. I don't know how its implemented in Android but
> for your use case, you will need to learn Socket programming. Other than
> that, I can't help you. Sorry.
>
> On Tue, Jul 26, 2022 at 6:55 PM Chelsea Fan 
> wrote:
>
>> Hello, such a question, we plan to implement an application for Android,
>> for a TV and for a phone, it will be an application with the broadcast of
>> different channels, you will need to stream somehow, i.e. there is no
>> direct access.
>> which technologies I 'v to use for it?
>>
>> --
>> 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/CAJwZnde2MU7REjt-GTJc%3DR7NsmND9wVen_EgnghdQQziZcxJMw%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Abdul Qoyyuum Bin Haji Abdul Kadir
> HP No: +673 720 8043
>
> --
> 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/CAA3DN%3DWBB3tCjYZMDo5q7ce85-7u64uUB6eWhkjpb-0BfEVJVQ%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/CAJwZndfCO8wjWi22VXy%3DwpnUOTGmzEJRfubsY336Yh7MuBziiQ%40mail.gmail.com.


Re: Invitation: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-26 Thread Satyajit Barik
Hey Pythonian & Djangoian,


I am delighted to invite you on behalf of python & django to become a
member today in WhatsApp group.


Here you can join in our WhatsApp group using below link



https://chat.whatsapp.com/Bq2jcxLJVG50v9Wbkvz6Vy


[Membership benefits] Here are some great perks you get for becoming a
member:

   - Ask your python & django related problems: get quick possible answer.
   - Friendly environment: you can learn python & django from core.
   - Daily Python Assignment exercise.


Thank you for your consideration, I look forward to hearing from you and
hope to see you at our WhatsApp python group.



Thanks & Best Regards,

Satyajit Barik

On Wed, 27 Jul 2022 at 1:40 AM, government jobsalert <
ingovernmentjobsal...@gmail.com> wrote:

> is the session still available?
> you can share contact at governmentjobsalert.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://groups.google.com/d/msgid/django-users/7e632bfd-b172-4a2c-b2a9-9075332ab38an%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/CANd-%2BoBW4D%2BnPhCRx%3DMZ5TwTyZdt%2BETnY_Ju%2BDXuFo_Q1_JfAg%40mail.gmail.com.


Re: please help me to solve

2022-07-26 Thread Abdul Qoyyuum
This is a Django group. I don't know how its implemented in Android but for
your use case, you will need to learn Socket programming. Other than that,
I can't help you. Sorry.

On Tue, Jul 26, 2022 at 6:55 PM Chelsea Fan 
wrote:

> Hello, such a question, we plan to implement an application for Android,
> for a TV and for a phone, it will be an application with the broadcast of
> different channels, you will need to stream somehow, i.e. there is no
> direct access.
> which technologies I 'v to use for it?
>
> --
> 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/CAJwZnde2MU7REjt-GTJc%3DR7NsmND9wVen_EgnghdQQziZcxJMw%40mail.gmail.com
> 
> .
>


-- 
Abdul Qoyyuum Bin Haji Abdul Kadir
HP No: +673 720 8043

-- 
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/CAA3DN%3DWBB3tCjYZMDo5q7ce85-7u64uUB6eWhkjpb-0BfEVJVQ%40mail.gmail.com.


Re: Google Authentication code

2022-07-26 Thread Victor Dickson
If I am clear about your question, then django-allauth should help you 
achieve that. NB: Template customization can be a drag when you just 
getting started.

On Tuesday, 26 July 2022 at 02:11:31 UTC Ryan Nowakowski wrote:

> 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/c4e63be3-fb52-425f-942d-8ee473573bcbn%40googlegroups.com.


Re: Invitation: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-26 Thread government jobsalert
is the session still available?
you can share contact at governmentjobsalert.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://groups.google.com/d/msgid/django-users/7e632bfd-b172-4a2c-b2a9-9075332ab38an%40googlegroups.com.


Casting a variable as array in a query

2022-07-26 Thread Sencer Hamarat
I'm having a problem with this query:

I believe,

Q(bundle__contains=OuterRef("book_id"))

part of the query is expecting an array instead of single value.

I'm getting this error:


ProgrammingError: operator does not exist: jsonb @> bigint
LINE 1: ...lisher"."book_id") OR U0."bundle" @> ("publisher_...
 ^
HINT: No operator matches the given name and argument types. You might need
to add explicit type casts.



Is there a way to handle this error? How can I cast the value into an array
within the query?

-- 
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/CACp8TZgfrDY6ceG5jTcX81-6%3DDQHAf0sZms7%3D3B_iyDiX2949g%40mail.gmail.com.


Re: Pass or refer parent query value into subquery

2022-07-26 Thread Ross Meredith
Sorry I haven't used the JSONField myself before.

On Tue, Jul 26, 2022 at 5:01 PM Sencer Hamarat 
wrote:

> Thanks Ross,
> Very appreciated.
> That's what I need.
>
> I'm also having a problem with this query after I implemented the solution:
>
> I believe,
> Q(bundle__contains=OuterRef("book_id"))
> part of the query is expecting an array instead of direct value.
>
> I'm getting this error:
>
> ProgrammingError: operator does not exist: jsonb @> bigint
> LINE 1: ...lisher"."book_id") OR U0."bundle" @> ("publisher_...
>  ^
> HINT:  No operator matches the given name and argument types. You might
> need to add explicit type casts.
>
> Is there a way to handle this error? How can I cast the value into an
> array?
>
>
>
> Regards,
> Sencer HAMARAT
>
>
>
> On Tue, Jul 26, 2022 at 6:34 PM Ross Meredith 
> wrote:
>
>>
>> https://docs.djangoproject.com/en/4.0/ref/models/expressions/#django.db.models.OuterRef
>>
>> On Tue, Jul 26, 2022 at 4:27 PM Sencer Hamarat 
>> wrote:
>>
>>> Hi,
>>>
>>> I need to pass the parent query book_id value into the subquery.
>>> Here is the model and the current state of the query I reached.
>>>
>>> class Publisher(models.Model):
>>> book = models.ForeignKey(Book)
>>> bundle = models.JSONField()
>>>
>>>
>>> current_sales_count_query = Publisher.objects.filter(
>>> Q(book_id=F("book_id")) | Q(bundle__contains=F("book_id")),
>>> ).values('id')
>>>
>>> query = Publisher.objects.filter(
>>>  **query_params,
>>> ).select_related(
>>>  'book',
>>> ).annotate(
>>>
>>> current_sales_count=Count(Subquery(current_sales_count_query)),
>>> )
>>>
>>> Sql Output:
>>>
>>> SELECT "publisher"."id",
>>>..
>>>COUNT((SELECT U0."id"
>>>   FROM "publisher" U0
>>>   WHERE (U0."book_id" = (U0."logbook_id") OR
>>> U0."current_tree_level" @> (U0."book_id") "current_rejected_count",
>>>"books"."id",
>>>
>>> FROM "publisher"
>>>  INNER JOIN "books" ON ("publisher"."book_id" = "books"."id")
>>> WHERE "publisher"."book_id" IN (1, 2, 12)
>>> GROUP BY "publisher"."id", "books"."id"
>>>
>>> But subquery insists on using book_id from itself with that query.
>>> What should I do to make things right?
>>>
>>>
>>>
>>> King regards,
>>> 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/CACp8TZjKRQS2_OZsTey%2BPiJJF2nDzCjLR3uf09Y6seZ9_gc5Yg%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/CAA1Tdz1N422oNtAkTtQpw1yu529PfdCPeevW%2BWbuBWfk_XO0RQ%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/CACp8TZiY-bcdC4%3DbwCde7MVothzqtYjYL%3Doi2dcmL2KZPYe6nQ%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/CAA1Tdz2uKnKXnTrTkj47meDjkf8c3uJSo4AC4txq%3Dhfro8dYWw%40mail.gmail.com.


Become Django member in WhatsApp group

2022-07-26 Thread Satyajit Barik
Dear Pythonian & Djangoian,


I am delighted to invite you on behalf of python & django to become a free
member today in WhatsApp group.


Here you can join in our WhatsApp group using below link



https://chat.whatsapp.com/Bq2jcxLJVG50v9Wbkvz6Vy


[Membership benefits] Here are some great perks you get for becoming a
member:

   - Ask your python & django related problems: get quick possible answer.
   - Friendly environment: you can learn python & django from core.
   - Daily Python Assignment exercise.


Thank you for your consideration, I look forward to hearing from you and
hope to see you at our WhatsApp python group.



Thanks & Best Regards,

Satyajit Barik

-- 
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/CANd-%2BoB-3xJPDhTTothoL9MVUxPQ_No-oh_R3j%3D2B3chfpot-g%40mail.gmail.com.


Re: Blog application with django

2022-07-26 Thread Lakshyaraj Dash
I can do the backend part. If you need bootstrap in frontend then tell me.
But I can build a minimal version of the blog...

On Tue, Jul 26, 2022, 21:03 MAHESH KUMAR 
wrote:

> Hi all
>
> https://www.health.harvard.edu/mind-and-mood/relaxation-techniques-breath-control-helps-quell-errant-stress-response
>
> I want this type blog application please help me anybody coding part please
>
>
> Thanks & Regards
>
>
> --
> 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/f31400ff-20b6-4e85-be98-30e62f90bac0n%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/CAF7qQgB6s9dXANrdkyva3iszQ8C_E2wJ%2Bv2EX7AVjUrprdPRyg%40mail.gmail.com.


Re: Blog application with django

2022-07-26 Thread Lakshyaraj Dash
I can help you but I need some time for that. Is there any deadline?
Because it may take 1 week because I'm doing my studies now but you can
checkout my project at the following urls.

GitHub Link
https://www.github.com/codewithlaksh
Discussion website (temporarily deployed to heroku)
https://django-idiscuss-forums.herokuapp.com.

Mail me personally at
dashlakshyaraj2...@gmail.com

Thanks and Regards
Lakshyaraj Dash

On Tue, Jul 26, 2022, 21:42 MAHESH KUMAR 
wrote:

> i try to your number but iam not able to contact
>
>
> On Tue, Jul 26, 2022 at 9:21 PM Ammar Mohammed 
> wrote:
>
>> Hi
>> I can help you with that
>> Please contact me in whatsapp :
>> httpa://wa.me/249113075979
>>
>> Regards
>> Ammar Mohammed
>> On 26 Jul 2022 17:33, "MAHESH KUMAR" 
>> wrote:
>>
>>> Hi all
>>>
>>> https://www.health.harvard.edu/mind-and-mood/relaxation-techniques-breath-control-helps-quell-errant-stress-response
>>>
>>> I want this type blog application please help me anybody coding part
>>> please
>>>
>>>
>>> Thanks & Regards
>>>
>>>
>>> --
>>> 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/f31400ff-20b6-4e85-be98-30e62f90bac0n%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/CAHs1H7vfYUj6bZvNFEE%3D7jgst5KBq7qykanS4RbP66LB9kbYSw%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/CAPvC_H_g4-%2B89uKAnh7hpyCo00c3-6q8dVSxJet9a3-h0Z8ezQ%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/CAF7qQgDsznYSQY%2Btgx1qUsPPhhG7AT4Vt%2BN_14LQCxuJmZDe%3Dg%40mail.gmail.com.


Re: Blog application with django

2022-07-26 Thread MAHESH KUMAR
i try to your number but iam not able to contact


On Tue, Jul 26, 2022 at 9:21 PM Ammar Mohammed 
wrote:

> Hi
> I can help you with that
> Please contact me in whatsapp :
> httpa://wa.me/249113075979
>
> Regards
> Ammar Mohammed
> On 26 Jul 2022 17:33, "MAHESH KUMAR"  wrote:
>
>> Hi all
>>
>> https://www.health.harvard.edu/mind-and-mood/relaxation-techniques-breath-control-helps-quell-errant-stress-response
>>
>> I want this type blog application please help me anybody coding part
>> please
>>
>>
>> Thanks & Regards
>>
>>
>> --
>> 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/f31400ff-20b6-4e85-be98-30e62f90bac0n%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/CAHs1H7vfYUj6bZvNFEE%3D7jgst5KBq7qykanS4RbP66LB9kbYSw%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/CAPvC_H_g4-%2B89uKAnh7hpyCo00c3-6q8dVSxJet9a3-h0Z8ezQ%40mail.gmail.com.


Re: Pass or refer parent query value into subquery

2022-07-26 Thread Sencer Hamarat
Thanks Ross,
Very appreciated.
That's what I need.

I'm also having a problem with this query after I implemented the solution:

I believe,
Q(bundle__contains=OuterRef("book_id"))
part of the query is expecting an array instead of direct value.

I'm getting this error:

ProgrammingError: operator does not exist: jsonb @> bigint
LINE 1: ...lisher"."book_id") OR U0."bundle" @> ("publisher_...
 ^
HINT:  No operator matches the given name and argument types. You might
need to add explicit type casts.

Is there a way to handle this error? How can I cast the value into an array?



Regards,
Sencer HAMARAT



On Tue, Jul 26, 2022 at 6:34 PM Ross Meredith  wrote:

>
> https://docs.djangoproject.com/en/4.0/ref/models/expressions/#django.db.models.OuterRef
>
> On Tue, Jul 26, 2022 at 4:27 PM Sencer Hamarat 
> wrote:
>
>> Hi,
>>
>> I need to pass the parent query book_id value into the subquery.
>> Here is the model and the current state of the query I reached.
>>
>> class Publisher(models.Model):
>> book = models.ForeignKey(Book)
>> bundle = models.JSONField()
>>
>>
>> current_sales_count_query = Publisher.objects.filter(
>> Q(book_id=F("book_id")) | Q(bundle__contains=F("book_id")),
>> ).values('id')
>>
>> query = Publisher.objects.filter(
>>  **query_params,
>> ).select_related(
>>  'book',
>> ).annotate(
>>
>> current_sales_count=Count(Subquery(current_sales_count_query)),
>> )
>>
>> Sql Output:
>>
>> SELECT "publisher"."id",
>>..
>>COUNT((SELECT U0."id"
>>   FROM "publisher" U0
>>   WHERE (U0."book_id" = (U0."logbook_id") OR
>> U0."current_tree_level" @> (U0."book_id") "current_rejected_count",
>>"books"."id",
>>
>> FROM "publisher"
>>  INNER JOIN "books" ON ("publisher"."book_id" = "books"."id")
>> WHERE "publisher"."book_id" IN (1, 2, 12)
>> GROUP BY "publisher"."id", "books"."id"
>>
>> But subquery insists on using book_id from itself with that query.
>> What should I do to make things right?
>>
>>
>>
>> King regards,
>> 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/CACp8TZjKRQS2_OZsTey%2BPiJJF2nDzCjLR3uf09Y6seZ9_gc5Yg%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/CAA1Tdz1N422oNtAkTtQpw1yu529PfdCPeevW%2BWbuBWfk_XO0RQ%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/CACp8TZiY-bcdC4%3DbwCde7MVothzqtYjYL%3Doi2dcmL2KZPYe6nQ%40mail.gmail.com.


Re: Blog application with django

2022-07-26 Thread Ammar Mohammed
Hi
I can help you with that
Please contact me in whatsapp :
httpa://wa.me/249113075979

Regards
Ammar Mohammed
On 26 Jul 2022 17:33, "MAHESH KUMAR"  wrote:

> Hi all
> https://www.health.harvard.edu/mind-and-mood/relaxation-
> techniques-breath-control-helps-quell-errant-stress-response
>
> I want this type blog application please help me anybody coding part please
>
>
> Thanks & Regards
>
>
> --
> 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/f31400ff-20b6-4e85-be98-30e62f90bac0n%
> 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/CAHs1H7vfYUj6bZvNFEE%3D7jgst5KBq7qykanS4RbP66LB9kbYSw%40mail.gmail.com.


Re: Blog application with django

2022-07-26 Thread Ross Meredith
Lol.

Ok, well, yes, django can be used to create a blog.  But you can't really
just send an email around saying you want this blog - it doesn't really
work like that.

Sounds like you need to learn how to use django.  There are countless
tutorials online.  Many of them probably teach you how to build a blog.

On Tue, Jul 26, 2022 at 4:42 PM MAHESH KUMAR 
wrote:

> click above link in mail  i want that type of Blog application
>
>
> On Tue, Jul 26, 2022 at 9:04 PM Ross Meredith 
> wrote:
>
>> Sorry it's not clear what you are asking.
>>
>> On Tue, Jul 26, 2022 at 4:33 PM MAHESH KUMAR <
>> maheshkumartamb...@gmail.com> wrote:
>>
>>> Hi all
>>>
>>> https://www.health.harvard.edu/mind-and-mood/relaxation-techniques-breath-control-helps-quell-errant-stress-response
>>>
>>> I want this type blog application please help me anybody coding part
>>> please
>>>
>>>
>>> Thanks & Regards
>>>
>>>
>>> --
>>> 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/f31400ff-20b6-4e85-be98-30e62f90bac0n%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/CAA1Tdz3FnWbEoxKxHPT%2BRQc8F7N-mQTpuGbCdgDc82U4Y2tT_g%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/CAPvC_H9yLr2%2BHE-nmaUcLmkYua-nAjwjLv1GacQm22ACtG_SPA%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/CAA1Tdz2Qz%3DPNd2XEgSDBA9VckN6G9orL2MrZ%3DcG%3DDkArFotxFQ%40mail.gmail.com.


Re: Blog application with django

2022-07-26 Thread MAHESH KUMAR
click above link in mail  i want that type of Blog application


On Tue, Jul 26, 2022 at 9:04 PM Ross Meredith  wrote:

> Sorry it's not clear what you are asking.
>
> On Tue, Jul 26, 2022 at 4:33 PM MAHESH KUMAR 
> wrote:
>
>> Hi all
>>
>> https://www.health.harvard.edu/mind-and-mood/relaxation-techniques-breath-control-helps-quell-errant-stress-response
>>
>> I want this type blog application please help me anybody coding part
>> please
>>
>>
>> Thanks & Regards
>>
>>
>> --
>> 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/f31400ff-20b6-4e85-be98-30e62f90bac0n%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/CAA1Tdz3FnWbEoxKxHPT%2BRQc8F7N-mQTpuGbCdgDc82U4Y2tT_g%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/CAPvC_H9yLr2%2BHE-nmaUcLmkYua-nAjwjLv1GacQm22ACtG_SPA%40mail.gmail.com.


Re: Blog application with django

2022-07-26 Thread Ross Meredith
Sorry it's not clear what you are asking.

On Tue, Jul 26, 2022 at 4:33 PM MAHESH KUMAR 
wrote:

> Hi all
>
> https://www.health.harvard.edu/mind-and-mood/relaxation-techniques-breath-control-helps-quell-errant-stress-response
>
> I want this type blog application please help me anybody coding part please
>
>
> Thanks & Regards
>
>
> --
> 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/f31400ff-20b6-4e85-be98-30e62f90bac0n%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/CAA1Tdz3FnWbEoxKxHPT%2BRQc8F7N-mQTpuGbCdgDc82U4Y2tT_g%40mail.gmail.com.


Re: Pass or refer parent query value into subquery

2022-07-26 Thread Ross Meredith
https://docs.djangoproject.com/en/4.0/ref/models/expressions/#django.db.models.OuterRef

On Tue, Jul 26, 2022 at 4:27 PM Sencer Hamarat 
wrote:

> Hi,
>
> I need to pass the parent query book_id value into the subquery.
> Here is the model and the current state of the query I reached.
>
> class Publisher(models.Model):
> book = models.ForeignKey(Book)
> bundle = models.JSONField()
>
>
> current_sales_count_query = Publisher.objects.filter(
> Q(book_id=F("book_id")) | Q(bundle__contains=F("book_id")),
> ).values('id')
>
> query = Publisher.objects.filter(
>  **query_params,
> ).select_related(
>  'book',
> ).annotate(
> current_sales_count=Count(Subquery(current_sales_count_query)),
> )
>
> Sql Output:
>
> SELECT "publisher"."id",
>..
>COUNT((SELECT U0."id"
>   FROM "publisher" U0
>   WHERE (U0."book_id" = (U0."logbook_id") OR
> U0."current_tree_level" @> (U0."book_id") "current_rejected_count",
>"books"."id",
>
> FROM "publisher"
>  INNER JOIN "books" ON ("publisher"."book_id" = "books"."id")
> WHERE "publisher"."book_id" IN (1, 2, 12)
> GROUP BY "publisher"."id", "books"."id"
>
> But subquery insists on using book_id from itself with that query.
> What should I do to make things right?
>
>
>
> King regards,
> 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/CACp8TZjKRQS2_OZsTey%2BPiJJF2nDzCjLR3uf09Y6seZ9_gc5Yg%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/CAA1Tdz1N422oNtAkTtQpw1yu529PfdCPeevW%2BWbuBWfk_XO0RQ%40mail.gmail.com.


Blog application with django

2022-07-26 Thread MAHESH KUMAR
Hi all
https://www.health.harvard.edu/mind-and-mood/relaxation-techniques-breath-control-helps-quell-errant-stress-response

I want this type blog application please help me anybody coding part please


Thanks & Regards
 

-- 
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/f31400ff-20b6-4e85-be98-30e62f90bac0n%40googlegroups.com.


Pass or refer parent query value into subquery

2022-07-26 Thread Sencer Hamarat
Hi,

I need to pass the parent query book_id value into the subquery.
Here is the model and the current state of the query I reached.

class Publisher(models.Model):
book = models.ForeignKey(Book)
bundle = models.JSONField()


current_sales_count_query = Publisher.objects.filter(
Q(book_id=F("book_id")) | Q(bundle__contains=F("book_id")),
).values('id')

query = Publisher.objects.filter(
 **query_params,
).select_related(
 'book',
).annotate(
current_sales_count=Count(Subquery(current_sales_count_query)),
)

Sql Output:

SELECT "publisher"."id",
   ..
   COUNT((SELECT U0."id"
  FROM "publisher" U0
  WHERE (U0."book_id" = (U0."logbook_id") OR
U0."current_tree_level" @> (U0."book_id") "current_rejected_count",
   "books"."id",
   
FROM "publisher"
 INNER JOIN "books" ON ("publisher"."book_id" = "books"."id")
WHERE "publisher"."book_id" IN (1, 2, 12)
GROUP BY "publisher"."id", "books"."id"

But subquery insists on using book_id from itself with that query.
What should I do to make things right?



King regards,
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/CACp8TZjKRQS2_OZsTey%2BPiJJF2nDzCjLR3uf09Y6seZ9_gc5Yg%40mail.gmail.com.


please help me to solve

2022-07-26 Thread Chelsea Fan
Hello, such a question, we plan to implement an application for Android,
for a TV and for a phone, it will be an application with the broadcast of
different channels, you will need to stream somehow, i.e. there is no
direct access.
which technologies I 'v to use for it?

-- 
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/CAJwZnde2MU7REjt-GTJc%3DR7NsmND9wVen_EgnghdQQziZcxJMw%40mail.gmail.com.