Re: Django timing

2022-09-10 Thread Abbos Hakimov
This is my github name KhakimovSoftware On Sat, 10 Sept 2022, 12:43 am Pelumi Michael, wrote: > 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 simila

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

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/#natural

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 searche

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.human

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

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 t

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 pmic