Re: Lookups

2022-09-09 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi!

I think you've found the wrong mailing list for this post. This mailing
list is for discussing the development of Django itself, not for support
using Django. This means the discussions of bugs and features in Django
itself, rather than in your code using it. People on this list are unlikely
to answer your support query with their limited time and energy.

For support, please follow the "Getting Help" page:
https://docs.djangoproject.com/en/stable/faq/help/ . This will help you
find people who are willing to support you, and to ask your question in a
way that makes it easy for them to answer.

Thanks for your understanding and all the best,

Adam

On Thu, Sep 8, 2022 at 3:15 PM Bhuvnesh Sharma 
wrote:

> Can anyone explain me the difference between lookups and related lookups?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/16ebb8e9-166e-4974-8069-2005345eebfan%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM2E0QoquZe5wd7T9eanTNLqWdW40NvZF%3DPLg6nW2ivH0w%40mail.gmail.com.


Re: add option to specify HELO name/identity in SMTP client

2022-09-09 Thread David Pinto
‪On Wed, 7 Sept 2022 at 15:37, ‫אורי‬‎  wrote:‬
>
> Hi David,
>
> Does and should Django connect directly to a remote SMTP server? Isn't it 
> better to use the local mail server which will receive the email and then 
> send it to a remote SMTP server? In my opinion, it's always better to send 
> emails via a local mail server on the same machine. Do you have other 
> experiences?
>
> Thanks,
> Uri Rodberg, Speedy Net.
> אורי
> u...@speedy.net

Hi Uri

Thank you for the reply.

The mail server I'm connecting to, while not on localhost, is on an
internal network and so, somewhat local.  I don't have the experience
that sending mail through such a "remote" server is any worse.  I
don't have the experience that it's any better either, I just never
had any issues.  It does save me from having to setup a mail server.
Anyway, as I mentioned on my proposal, having a mail server on
localhost is exactly the kind of workaround I suggest.

I understand that implementing a full-featured SMTP client may be
outside the scope of Django's mail module.  I also understand that
being able to specify the identifier for the HELO command may be
behind the line of what defines a simple SMTP client.  But because
this is an option exposed by Python's smtplib, I thought it would be
accepted.  However, it's been 13 years since Django's added mail
support and if no one needed the ability to specify this, maybe it is
not worth the extra complication.

Either way, let me know.  I can submit a simple PR that adds this
option or document that Django's SMTP client should be connecting to a
full-featured SMTP server on localhost if more complex connections are
required.

Many thanks
David

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAPOrs_1Yhd8A%3Dm%2Bd41OJ4RZmqzMrvan3cOpYGvuooyAKTgF-6A%40mail.gmail.com.


Django timing

2022-09-09 Thread Pelumi Michael
Hello. I was developing an instagram clone website but got a problem when I 
wanted to add timing to the post, timing like "2 minutes ago", "just now" 
etc. I searched through the internet I couldn't get the right solution (I 
don't know if there is solution for it yet). Then I decided to go on a 
journey of solving the problem myself, which I did and I will like to share 
the codes with the community for review and improvements (if any). I have 
no idea where to do that, I will love to get a reply soon because I cannot 
wait to contribute to django. I am also ready to give full detail of the 
code and how to use. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/99fc5bbc-d16f-40fe-b409-a48cb63f3d30n%40googlegroups.com.


Re: Django timing

2022-09-09 Thread Bhuvnesh Sharma
Hi, 
if you are using templates then you can simply write: 

{{message.created|timesince}} ago

where created is a field of message storing the date and time when the 
message was created.

created =  models.DateTimeField(auto_now_add=True)


On Friday, September 9, 2022 at 7:11:00 PM UTC+5:30 pmicha...@gmail.com 
wrote:

> Hello. I was developing an instagram clone website but got a problem when 
> I wanted to add timing to the post, timing like "2 minutes ago", "just now" 
> etc. I searched through the internet I couldn't get the right solution (I 
> don't know if there is solution for it yet). Then I decided to go on a 
> journey of solving the problem myself, which I did and I will like to share 
> the codes with the community for review and improvements (if any). I have 
> no idea where to do that, I will love to get a reply soon because I cannot 
> wait to contribute to django. I am also ready to give full detail of the 
> code and how to use. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/664a2283-be6d-49db-9316-7940b013297fn%40googlegroups.com.


Re: Django timing

2022-09-09 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi!

I think you've found the wrong mailing list for this post. This mailing
list is for discussing the development of Django itself, not for support
using Django. This means the discussions of bugs and features in Django
itself, rather than in your code using it. People on this list are unlikely
to answer your support query with their limited time and energy.

For support, please follow the "Getting Help" page:
https://docs.djangoproject.com/en/stable/faq/help/ . This will help you
find people who are willing to support you, and to ask your question in a
way that makes it easy for them to answer.

Thanks for your understanding and all the best,

Adam

On Fri, Sep 9, 2022 at 2:48 PM Bhuvnesh Sharma 
wrote:

> Hi,
> if you are using templates then you can simply write:
>
> {{message.created|timesince}} ago
>
> where created is a field of message storing the date and time when the
> message was created.
>
> created =  models.DateTimeField(auto_now_add=True)
>
>
> On Friday, September 9, 2022 at 7:11:00 PM UTC+5:30 pmicha...@gmail.com
> wrote:
>
>> Hello. I was developing an instagram clone website but got a problem when
>> I wanted to add timing to the post, timing like "2 minutes ago", "just now"
>> etc. I searched through the internet I couldn't get the right solution (I
>> don't know if there is solution for it yet). Then I decided to go on a
>> journey of solving the problem myself, which I did and I will like to share
>> the codes with the community for review and improvements (if any). I have
>> no idea where to do that, I will love to get a reply soon because I cannot
>> wait to contribute to django. I am also ready to give full detail of the
>> code and how to use.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/664a2283-be6d-49db-9316-7940b013297fn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM0Gp5QTVrf%2BNySqi7aPDsZ-%3DK9cBNKScMWrYWxFvWe0rQ%40mail.gmail.com.


Re: Django timing

2022-09-09 Thread David Sanders
Hi Pelumi,

It's kind of you to offer code, however there is a similar functionality in
contrib.humanize:
https://docs.djangoproject.com/en/4.1/ref/contrib/humanize/#naturaltime

Perhaps this does what you require?

--
David

On Fri, 9 Sept 2022 at 23:50, Bhuvnesh Sharma  wrote:

> Hi,
> if you are using templates then you can simply write:
>
> {{message.created|timesince}} ago
>
> where created is a field of message storing the date and time when the
> message was created.
>
> created =  models.DateTimeField(auto_now_add=True)
>
>
> On Friday, September 9, 2022 at 7:11:00 PM UTC+5:30 pmicha...@gmail.com
> wrote:
>
>> Hello. I was developing an instagram clone website but got a problem when
>> I wanted to add timing to the post, timing like "2 minutes ago", "just now"
>> etc. I searched through the internet I couldn't get the right solution (I
>> don't know if there is solution for it yet). Then I decided to go on a
>> journey of solving the problem myself, which I did and I will like to share
>> the codes with the community for review and improvements (if any). I have
>> no idea where to do that, I will love to get a reply soon because I cannot
>> wait to contribute to django. I am also ready to give full detail of the
>> code and how to use.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/664a2283-be6d-49db-9316-7940b013297fn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CADyZw-7Vq%3DMoJhWVtMsrCD99a%3D_82P4xrT3xqQx6PzF8rqYSMA%40mail.gmail.com.


Re: Django timing

2022-09-09 Thread Abbos Hakimov
Hi Bro can you help me  i need big django projects as used generic views
how i can find the source I need samples compare to my projects

On Fri, 9 Sept 2022, 7:08 pm David Sanders, 
wrote:

> Hi Pelumi,
>
> It's kind of you to offer code, however there is a similar functionality
> in contrib.humanize:
> https://docs.djangoproject.com/en/4.1/ref/contrib/humanize/#naturaltime
>
> Perhaps this does what you require?
>
> --
> David
>
> On Fri, 9 Sept 2022 at 23:50, Bhuvnesh Sharma 
> wrote:
>
>> Hi,
>> if you are using templates then you can simply write:
>>
>> {{message.created|timesince}} ago
>>
>> where created is a field of message storing the date and time when the
>> message was created.
>>
>> created =  models.DateTimeField(auto_now_add=True)
>>
>>
>> On Friday, September 9, 2022 at 7:11:00 PM UTC+5:30 pmicha...@gmail.com
>> wrote:
>>
>>> Hello. I was developing an instagram clone website but got a problem
>>> when I wanted to add timing to the post, timing like "2 minutes ago", "just
>>> now" etc. I searched through the internet I couldn't get the right solution
>>> (I don't know if there is solution for it yet). Then I decided to go on a
>>> journey of solving the problem myself, which I did and I will like to share
>>> the codes with the community for review and improvements (if any). I have
>>> no idea where to do that, I will love to get a reply soon because I cannot
>>> wait to contribute to django. I am also ready to give full detail of the
>>> code and how to use.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-developers+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-developers/664a2283-be6d-49db-9316-7940b013297fn%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/CADyZw-7Vq%3DMoJhWVtMsrCD99a%3D_82P4xrT3xqQx6PzF8rqYSMA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAHzk8i6ahjrHhaaMoknWL2KzevcRcuyh4inKj69Cimsuc0%2BK0Q%40mail.gmail.com.


Re: Django timing

2022-09-09 Thread Abbos Hakimov
if you are creating an instagram clone I will gladly help you if you want

On Fri, 9 Sept 2022, 6:40 pm Pelumi Michael,  wrote:

> Hello. I was developing an instagram clone website but got a problem when
> I wanted to add timing to the post, timing like "2 minutes ago", "just now"
> etc. I searched through the internet I couldn't get the right solution (I
> don't know if there is solution for it yet). Then I decided to go on a
> journey of solving the problem myself, which I did and I will like to share
> the codes with the community for review and improvements (if any). I have
> no idea where to do that, I will love to get a reply soon because I cannot
> wait to contribute to django. I am also ready to give full detail of the
> code and how to use.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/99fc5bbc-d16f-40fe-b409-a48cb63f3d30n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAHzk8i6evL8aFofk2gS9E5nmpNTmykY__8hALK9MeBxEPbSBCw%40mail.gmail.com.


Re: Django timing

2022-09-09 Thread Pelumi Michael
I can connect with you on GitHub for use or work on it together

On Fri, Sep 9, 2022, 3:08 PM David Sanders 
wrote:

> Hi Pelumi,
>
> It's kind of you to offer code, however there is a similar functionality
> in contrib.humanize:
> https://docs.djangoproject.com/en/4.1/ref/contrib/humanize/#naturaltime
>
> Perhaps this does what you require?
>
> --
> David
>
> On Fri, 9 Sept 2022 at 23:50, Bhuvnesh Sharma 
> wrote:
>
>> Hi,
>> if you are using templates then you can simply write:
>>
>> {{message.created|timesince}} ago
>>
>> where created is a field of message storing the date and time when the
>> message was created.
>>
>> created =  models.DateTimeField(auto_now_add=True)
>>
>>
>> On Friday, September 9, 2022 at 7:11:00 PM UTC+5:30 pmicha...@gmail.com
>> wrote:
>>
>>> Hello. I was developing an instagram clone website but got a problem
>>> when I wanted to add timing to the post, timing like "2 minutes ago", "just
>>> now" etc. I searched through the internet I couldn't get the right solution
>>> (I don't know if there is solution for it yet). Then I decided to go on a
>>> journey of solving the problem myself, which I did and I will like to share
>>> the codes with the community for review and improvements (if any). I have
>>> no idea where to do that, I will love to get a reply soon because I cannot
>>> wait to contribute to django. I am also ready to give full detail of the
>>> code and how to use.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-developers+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-developers/664a2283-be6d-49db-9316-7940b013297fn%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/CADyZw-7Vq%3DMoJhWVtMsrCD99a%3D_82P4xrT3xqQx6PzF8rqYSMA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAAKJA_2w8NW9U5B0e4jetaXJ5sbyce3AZ9OVhb2_ZYC%2BAP%3D5JQ%40mail.gmail.com.


Re: Django timing

2022-09-09 Thread Pelumi Michael
Hello thank you for the replies. The solution you mentioned is for someone
using the template, the solution I am offering is just a function, I don't
know if I can copy the code here for you to see and review.

On Fri, Sep 9, 2022, 3:08 PM David Sanders 
wrote:

> Hi Pelumi,
>
> It's kind of you to offer code, however there is a similar functionality
> in contrib.humanize:
> https://docs.djangoproject.com/en/4.1/ref/contrib/humanize/#naturaltime
>
> Perhaps this does what you require?
>
> --
> David
>
> On Fri, 9 Sept 2022 at 23:50, Bhuvnesh Sharma 
> wrote:
>
>> Hi,
>> if you are using templates then you can simply write:
>>
>> {{message.created|timesince}} ago
>>
>> where created is a field of message storing the date and time when the
>> message was created.
>>
>> created =  models.DateTimeField(auto_now_add=True)
>>
>>
>> On Friday, September 9, 2022 at 7:11:00 PM UTC+5:30 pmicha...@gmail.com
>> wrote:
>>
>>> Hello. I was developing an instagram clone website but got a problem
>>> when I wanted to add timing to the post, timing like "2 minutes ago", "just
>>> now" etc. I searched through the internet I couldn't get the right solution
>>> (I don't know if there is solution for it yet). Then I decided to go on a
>>> journey of solving the problem myself, which I did and I will like to share
>>> the codes with the community for review and improvements (if any). I have
>>> no idea where to do that, I will love to get a reply soon because I cannot
>>> wait to contribute to django. I am also ready to give full detail of the
>>> code and how to use.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-developers+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-developers/664a2283-be6d-49db-9316-7940b013297fn%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/CADyZw-7Vq%3DMoJhWVtMsrCD99a%3D_82P4xrT3xqQx6PzF8rqYSMA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAAKJA_1a0j4eKa7UVR3pZJVuGROCVXuRhL39JUBXpeMxb7NK5Q%40mail.gmail.com.