Re: htmx progress indicator problem - might be caching

2023-11-29 Thread ELVIS MAKASI
Greas

Le mer. 29 nov. 2023, 11:57, Thomas Couch  a écrit :

> Not sure if it's related, but you've got a div inside a p element there:
> 
>
> That'll probably get corrected by the browser to:
>   
> 
>
> Another thing is, it doesn't look like there's anything linking the submit
> button click to the initial htmx request, and there's no htmx in the
> response. Have you tried replicating the progress bar example?
> https://htmx.org/examples/progress-bar/
>
>
> On Tuesday, November 28, 2023 at 2:26:20 AM UTC Mike Dewhirst wrote:
>
>> I'm trying but failing to get htmx to deliver a progress indication.
>>
>> The task is creating records in the database for each item in a list
>> provided by the logged in user.
>>
>> The view with the submit button collects the list and does the database
>> insertion. I added a "progress" property to the User model as follows ...
>>
>> class User(AbstractUser):
>>
>>
>> def __init__(self, *args, **kwargs):
>>
>> super().__init__(*args, **kwargs)
>>
>> self.progress = ""
>>
>> ...
>>
>>
>> def set_progress(self, value):
>>
>> self.progress = value
>>
>>
>> @property
>>
>> def get_progress(self):
>>
>> return f"{self.progress}"
>>
>> ...
>>
>>
>>
>> In the view I update user.progress with the record insertion counter and
>> get_progress returns the correct value in the view itself as proven by
>> print statements. So that part is working.
>>
>> In the template, I have ...
>>
>>   
>>
>> 
>>
>>   
>>
>>   
>>
>>
>> ... which in theory should fetch progress every second if the htmx docs
>> are correct. See https://htmx.org/docs/#polling
>>
>> This is the htmx view ...
>>
>> def hx_usr_progress(request):
>>
>> progress = request.user.progress
>>
>> print(f"\n{progress} ... {request.user}")
>>
>> return HttpResponse(mark_safe(f"... {progress}"))
>>
>>
>> When the import [Submit] button is clicked, the print statement in
>> hx_usr_progress fires with a blank progress value as per the
>> User.__init__() method AND on the page beneath the Submit button the 3 dots
>> shown above in the last line of the hx_usr_progress() view but nothing
>> further even though the main view is definitely incrementing the count.
>>
>> That tells me it is being called at least once instead of every second.
>> It should have fired at least 3 or 4 times.
>>
>> Or if it did perhaps the original response is cached - I don't know.
>>
>> How can I get this ticking over?
>>
>> Thanks for any hints.
>>
>> Cheers
>>
>> Mike
>>
>> --
> 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/020a98ef-4a10-4560-afdd-0a8b065e7235n%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/CACCiQ-kXKdgpS%3DCAK0ZJXrw6JO4CXVftcjpiP%3D2E3rh1NgqD3g%40mail.gmail.com.


Re: I am interested. +2348162698617 Github: fosajeffRe: Exciting Opportunity: Join Our Django WhatsApp Bulk Messaging Project!

2024-02-25 Thread ELVIS MAKASI
Intéressant 😼

Le sam. 24 févr. 2024, 16:34, André Lewis  a
écrit :

> I'm interested. +8764608874.
>
> On Mon, 19 Feb 2024, 11:20 am Efosa Jeffrey Okooboh, <
> okoobohef...@gmail.com> wrote:
>
>> I am interested
>> On Monday, February 19, 2024 at 4:47:39 PM UTC+1 july quintero wrote:
>>
>>> Hello, I would like to be part of this work team and thus strengthen my
>>> knowledge with this great team of enthusiastic people with a lot of
>>> experience in this field of web development. Thank you very much for your
>>> attention and I will be waiting for a response.
>>>
>>>
>>> El dom, 18 feb 2024 a la(s) 11:48 a.m., SURAJ TIWARI (
>>> suraj1...@gmail.com) escribió:
>>>
 🚀 Join Our Django WhatsApp Bulk Messaging Project!

 👋 Hello everyone,

 Are you looking for an exciting opportunity to gain hands-on experience
 in Django development? Do you want to work on a meaningful project that
 leverages WhatsApp for bulk messaging? We're thrilled to invite you to join
 our dynamic team!

 🌟 Benefits:

- Get hands-on experience working on a real-world Django project.
- Learn how to leverage WhatsApp for bulk messaging, a valuable
skill in today's digital landscape.
- Opportunities for hybrid work, allowing flexibility in your
schedule.
- Collaborate with experienced developers and gain valuable
mentorship.
- Access to cutting-edge tools and technologies.

 💼 Opportunities Available:

- Django developers
- Frontend developers
- UI/UX designers
- Quality assurance testers

 🤝 How to Join: Simply reply to this message expressing your interest,
 and we'll provide you with all the necessary details to get started on our
 project.

 Let's work together to create something amazing and gain valuable
 experience along the way! 💻✨

 Best regards,

 Suraj Tiwari


 --
 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/e8a705fd-10d9-4c1a-b4ba-0a7b896dbfean%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/35101022-f487-42c5-9ae1-74afea0ed56dn%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/CAJN6x_h%2BQjLR9YvJHsC1Zt-OGMgjDxYJgVR5GnWmXoTEH7Q67w%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/CACCiQ-mtmSZA3xr484m%2B9knSZKBSAJTXzvvgOfGHrnyYG9iJQA%40mail.gmail.com.