Re: A Welcome Message

2023-06-27 Thread Dilmurod Dilmurod
https://youtu.be/xO1O0-L8ze0

Dush, 19-iyn, 2023, 22:50 Gobi Dasu :

> Welcome Pratik! Would love to learn more about your Django development
> experience.
>
> Regards,
> Gobi Dasu  ·
> ldtalentwork.com
> Stanford CS · Northwestern HCI
> Calendar  · Demo
>  · PM Service
>  · Join our
> Investors 
>
>
> On Sat, Jun 17, 2023 at 7:51 AM John Ayodele 
> wrote:
>
>> Hello everyone, lets welcome our new guy, Pratik!
>>
>> --
>> 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/CAP7pJ3gC78t6AxEbcWM65mVV5_NiSV%3DJ4jHuFVvqSLCOaorqBg%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/CAMk8evmHOBeyWXWKoQvmXNuwAkP-w%2BOqcq8ognVYAx%2Bk7MzpKg%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/CANHuyYJTWGKYN%3D2xmBme_3E8U7Pg6XdGVm4DULZZe-HqiHc8uA%40mail.gmail.com.


Re: A Welcome Message

2023-06-27 Thread Dilmurod Dilmurod
https://youtu.be/xO1O0-L8ze0

Shan, 17-iyn, 2023, 17:51 John Ayodele :

> Hello everyone, lets welcome our new guy, Pratik!
>
> --
> 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/CAP7pJ3gC78t6AxEbcWM65mVV5_NiSV%3DJ4jHuFVvqSLCOaorqBg%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/CANHuyYLMAkoYuVsJ5TBUfcc_SFVLpTow8onAKs%3D0yG-79N%2B%3Dhw%40mail.gmail.com.


Re: A Welcome Message

2023-06-27 Thread Dilmurod Dilmurod
https://youtu.be/xO1O0-L8ze0

Chor, 21-iyn, 2023, 21:06 Pratik Mishra :

> Attaching my resume, Let's connect on a call
>
> On Monday, June 19, 2023 at 11:20:16 PM UTC+5:30 Gobi Dasu wrote:
>
>> Welcome Pratik! Would love to learn more about your Django development
>> experience.
>>
>> Regards,
>> Gobi Dasu  ·
>> ldtalentwork.com
>> Stanford CS · Northwestern HCI
>> Calendar  · Demo
>>  · PM Service
>>  · Join our
>> Investors 
>>
>>
>> On Sat, Jun 17, 2023 at 7:51 AM John Ayodele  wrote:
>>
>>> Hello everyone, lets welcome our new guy, Pratik!
>>>
>>> --
>>> 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/CAP7pJ3gC78t6AxEbcWM65mVV5_NiSV%3DJ4jHuFVvqSLCOaorqBg%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/82a1fef7-f72b-404e-a0ac-22055f288bb3n%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/CANHuyYLWDcvrGxnjO%3Ds3WxyUFgB0Pb2vD-XPNjrgdgNT2Uyhvw%40mail.gmail.com.


Re: A Welcome Message

2023-06-21 Thread Pratik Mishra
Attaching my resume, Let's connect on a call

On Monday, June 19, 2023 at 11:20:16 PM UTC+5:30 Gobi Dasu wrote:

> Welcome Pratik! Would love to learn more about your Django development 
> experience.
>
> Regards,
> Gobi Dasu  · 
> ldtalentwork.com 
> Stanford CS · Northwestern HCI
> Calendar  · Demo 
>  · PM Service 
>  · Join our 
> Investors 
>
>
> On Sat, Jun 17, 2023 at 7:51 AM John Ayodele  wrote:
>
>> Hello everyone, lets welcome our new guy, Pratik!
>>
>> -- 
>> 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/CAP7pJ3gC78t6AxEbcWM65mVV5_NiSV%3DJ4jHuFVvqSLCOaorqBg%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/82a1fef7-f72b-404e-a0ac-22055f288bb3n%40googlegroups.com.


Resume_Pratik.pdf
Description: Adobe PDF document


Re: A Welcome Message

2023-06-19 Thread Gobi Dasu
Welcome Pratik! Would love to learn more about your Django development
experience.

Regards,
Gobi Dasu  ·
ldtalentwork.com
Stanford CS · Northwestern HCI
Calendar  · Demo
 · PM Service
 · Join our
Investors 


On Sat, Jun 17, 2023 at 7:51 AM John Ayodele 
wrote:

> Hello everyone, lets welcome our new guy, Pratik!
>
> --
> 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/CAP7pJ3gC78t6AxEbcWM65mVV5_NiSV%3DJ4jHuFVvqSLCOaorqBg%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/CAMk8evmHOBeyWXWKoQvmXNuwAkP-w%2BOqcq8ognVYAx%2Bk7MzpKg%40mail.gmail.com.


A Welcome Message

2023-06-17 Thread John Ayodele
Hello everyone, lets welcome our new guy, Pratik!

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


Re: sending a welcome message to new users using signals

2007-08-15 Thread omat

I decided to use checking date_join aproach, until I found the simple
and universal way. It is a little hacky but more straightforward.

This is my dispatcher in the models.py of the messaging aplication:

from django.dispatch import dispatcher
from django.db.models import signals
from messaging.views import send_welcome_message

dispatcher.connect(send_welcome_message,
   signal=signals.post_save,
   sender=User)


And this is the send_welcome_message function:

def send_welcome_message(instance, sender_id=1):
now = datetime.now()
if now - instance.date_joined < timedelta(seconds = 1):
template = get_template('messaging/welcome.txt')
message = template.render(Context({'username':
instance.username}))
m = Message(sender_id = sender_id,
receiver = instance,
message = message)
m.save()



On 15 Ağustos, 12:48, omat <[EMAIL PROTECTED]> wrote:
> Hi,
>
> To send a welcome message to a new user, I am listening for a
> "post_save" signal from an auth.models.User class and it works fine.
> But I need to determine whether the user is newly created.
>
> I can hook to the "pre_save" instead of "post_save" and check for the
> "instance.id". This way I can determine if the user is new but this
> time I do not know the new users id, which I need to register a
> message for her. So with this approach, I need to listen for both
> "pre_save" and "post_save", create a premature message on pre_save and
> update it with the user.id on post_save.
>
> This felt a little dirty. Other way might be checking the
> "date_joined" which looks even dirtier.
>
> Any suggestions?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



sending a welcome message to new users using signals

2007-08-15 Thread omat

Hi,

To send a welcome message to a new user, I am listening for a
"post_save" signal from an auth.models.User class and it works fine.
But I need to determine whether the user is newly created.

I can hook to the "pre_save" instead of "post_save" and check for the
"instance.id". This way I can determine if the user is new but this
time I do not know the new users id, which I need to register a
message for her. So with this approach, I need to listen for both
"pre_save" and "post_save", create a premature message on pre_save and
update it with the user.id on post_save.

This felt a little dirty. Other way might be checking the
"date_joined" which looks even dirtier.

Any suggestions?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---