Re: On button click need to call a python function...

2022-10-18 Thread subin
Please let me know if you need to reschedule.

On Tue, Oct 18, 2022 at 7:05 AM Saswat Mahapatra 
wrote:

> Hi ,
>
> I am new to django.
> On button click I need to call a python function which returns 2 values.
> If both the values are the same then I need to display the same image in 2
> places on the web page or else a different image.
>
> How to call the python function from html ?
>
> Thanks & Regards,
> Saswat
>
> --
> 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/294c7d09-d558-4b18-97c6-ee369c27a591n%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/CAJnMy6dbVhjKvmQyh5dU2osq1hF7qbsvwxLc41LFspgz6AqE-g%40mail.gmail.com.


Re: On button click need to call a python function...

2022-10-18 Thread subin
Please let me know if you need an extension.

On Tue, Oct 18, 2022 at 7:18 AM Saswat Mahapatra 
wrote:

> Hi  jitendra,
>
> Thank you for your quick response.  I am new to python  web development.
> On button click I need to call a python function and based on 2 values
> which It will return I need to show a image.
>
> Thank you,
> Saswat
>
> On Tuesday, 18 October 2022 at 11:41:39 UTC+5:30 jitendra...@gmail.com
> wrote:
>
>> Ping me
>>
>> On Tue, 18 Oct, 2022, 11:35 Saswat Mahapatra, 
>> wrote:
>>
>>> Hi ,
>>>
>>> I am new to django.
>>> On button click I need to call a python function which returns 2 values.
>>> If both the values are the same then I need to display the same image in 2
>>> places on the web page or else a different image.
>>>
>>> How to call the python function from html ?
>>>
>>> Thanks & Regards,
>>> Saswat
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/294c7d09-d558-4b18-97c6-ee369c27a591n%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/6bc5e99e-8612-4c76-b577-71a061f50435n%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/CAJnMy6f%2BXRfXf9ih5DU-1YaKPB9SEtWTkTc4hiE1EkxvQKFivA%40mail.gmail.com.


Re: On button click need to call a python function...

2022-10-18 Thread subin
Have a good day.

On Tue, Oct 18, 2022 at 9:20 AM Mike Dewhirst  wrote:

> On 18/10/2022 5:04 pm, Saswat Mahapatra wrote:
>
> Hi ,
>
> I am new to django.
> On button click I need to call a python function which returns 2 values.
> If both the values are the same then I need to display the same image in 2
> places on the web page or else a different image.
>
> How to call the python function from html ?
>
>
> I would be looking at htmx.org
>
> Maybe django-htmx
>
> I haven't tried it but I intend to one of these days.
>
> N
>
>
>
>
> Thanks & Regards,
> Saswat
> --
> 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/294c7d09-d558-4b18-97c6-ee369c27a591n%40googlegroups.com
> 
> .
>
>
>
> --
> Signed email is an absolute defence against phishing. This email has
> been signed with my private key. If you import my public key you can
> automatically decrypt my signature and be sure it came from me. Just
> ask and I'll send it to you. Your email software can handle signing.
>
> --
> 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/2ff0b19e-5aca-bfec-38f4-d902f24d3410%40dewhirst.com.au
> 
> .
>

-- 
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/CAJnMy6e8ehiHKv7dKYk3zr410nbmAaDZbDxx%2BfgZSZ1umhJmZQ%40mail.gmail.com.


Re: On button click need to call a python function...

2022-10-18 Thread Mike Dewhirst

On 18/10/2022 5:04 pm, Saswat Mahapatra wrote:

Hi ,

I am new to django.
On button click I need to call a python function which returns 2 
values. If both the values are the same then I need to display the 
same image in 2 places on the web page or else a different image.


How to call the python function from html ?


I would be looking at htmx.org

Maybe django-htmx

I haven't tried it but I intend to one of these days.

N





Thanks & Regards,
Saswat
--
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/294c7d09-d558-4b18-97c6-ee369c27a591n%40googlegroups.com 
.



--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.

--
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/2ff0b19e-5aca-bfec-38f4-d902f24d3410%40dewhirst.com.au.


OpenPGP_signature
Description: OpenPGP digital signature


Re: On button click need to call a python function...

2022-10-17 Thread Saswat Mahapatra
Hi  jitendra,

Thank you for your quick response.  I am new to python  web development. On 
button click I need to call a python function and based on 2 values which 
It will return I need to show a image.

Thank you,
Saswat

On Tuesday, 18 October 2022 at 11:41:39 UTC+5:30 jitendra...@gmail.com 
wrote:

> Ping me
>
> On Tue, 18 Oct, 2022, 11:35 Saswat Mahapatra,  wrote:
>
>> Hi ,
>>
>> I am new to django. 
>> On button click I need to call a python function which returns 2 values. 
>> If both the values are the same then I need to display the same image in 2 
>> places on the web page or else a different image.
>>
>> How to call the python function from html ? 
>>
>> Thanks & Regards,
>> Saswat
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/294c7d09-d558-4b18-97c6-ee369c27a591n%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/6bc5e99e-8612-4c76-b577-71a061f50435n%40googlegroups.com.


Re: On button click need to call a python function...

2022-10-17 Thread Jitendra kumar Patra
Ping me

On Tue, 18 Oct, 2022, 11:35 Saswat Mahapatra, 
wrote:

> Hi ,
>
> I am new to django.
> On button click I need to call a python function which returns 2 values.
> If both the values are the same then I need to display the same image in 2
> places on the web page or else a different image.
>
> How to call the python function from html ?
>
> Thanks & Regards,
> Saswat
>
> --
> 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/294c7d09-d558-4b18-97c6-ee369c27a591n%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/CAOAROfkYgnZuO740QZTuZGFVeJXfC2Hax5wbuyjdgHcsxFvSkA%40mail.gmail.com.


On button click need to call a python function...

2022-10-17 Thread Saswat Mahapatra
Hi ,

I am new to django. 
On button click I need to call a python function which returns 2 values. If 
both the values are the same then I need to display the same image in 2 
places on the web page or else a different image.

How to call the python function from html ? 

Thanks & Regards,
Saswat

-- 
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/294c7d09-d558-4b18-97c6-ee369c27a591n%40googlegroups.com.