order_by on the basis of time difference (updated_at - created_at)

2022-01-20 Thread Aadil Rashid
class ExampleModel(models.Model): is_active = models.BooleanField(default=True) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) I want to query on UserModel such that the Query set which I get should be orderable in terms of time difference o

Order_by on the basis of time difference:

2022-01-20 Thread Aadil Rashid
class UserModel(models.Model): is_active = models.BooleanField(default=True) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) I want to query on UserModel such that the Query set which I get should be orderable in terms of time difference of u

Re: error email in django

2022-01-20 Thread Saad Olamilekan
Have you install rest frame work then, insert it to register app in setting? On Thu, Jan 20, 2022, 7:39 PM Kasper Laudrup On 20/01/2022 15.19, Aksh Desai wrote: > > Hi! I face one error "No module named 'django.core.mail.backend'" when i > > use django-rest-framework. Now what can i do? How i fix

Product comparison in Django e-commerce website

2022-01-20 Thread Dexterr Jay
Hello guys, can someone please help me to implement product comparison in Django e-commerce website, perhaps some guideline or link to a tutorial will be very helpful. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th

Re: Django works with PDF

2022-01-20 Thread Prince Darlington Ekemini
Oh wow 🤩 very nice and a bit emotional. Do you have more writings like that ? On Thu, 20 Jan 2022 at 7:06 PM, Amor Zamora wrote: > I didn't write it. I took it from some writings of my mother, I don't > know if she wrote it because he is a poet, but I liked it. > > El jue., 20 de enero de 2022

Re: error email in django

2022-01-20 Thread Kasper Laudrup
On 20/01/2022 15.19, Aksh Desai wrote: Hi! I face one error "No module named 'django.core.mail.backend'" when i use django-rest-framework. Now what can i do? How i fix this error. Start by reading something like this: http://www.catb.org/~esr/faqs/smart-questions.html That should tell you wh

Re: Django works with PDF

2022-01-20 Thread Amor Zamora
I didn't write it. I took it from some writings of my mother, I don't know if she wrote it because he is a poet, but I liked it. El jue., 20 de enero de 2022 5:50 p. m., Prince Darlington Ekemini < ekemi...@gmail.com> escribió: > Nice to hear from you, > The ā€œBehind the distanceā€ was a good one

Re: Django works with PDF

2022-01-20 Thread Prince Darlington Ekemini
Nice to hear from you, The ā€œBehind the distanceā€ was a good one do you have others you wrote ? On Thu, 20 Jan 2022 at 3:16 PM, Amor Zamora wrote: > I have 2 problems working with pdf in django. > 1. I need a tool, function or library that allows me to open a pdf and > read the metadata, to get

Re: Django works with PDF

2022-01-20 Thread Vishesh Mangla
PyPDF2 On Thu, 20 Jan 2022, 19:46 Amor Zamora, wrote: > I have 2 problems working with pdf in django. > 1. I need a tool, function or library that allows me to open a pdf and > read the metadata, to get its 'creator and producer' there, but I have to > do this, not with python, because to show i

error email in django

2022-01-20 Thread Aksh Desai
Hi! I face one error "No module named 'django.core.mail.backend'" when i use django-rest-framework. Now what can i do? How i fix this error. Please Help me -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and sto

Django works with PDF

2022-01-20 Thread Amor Zamora
I have 2 problems working with pdf in django. 1. I need a tool, function or library that allows me to open a pdf and read the metadata, to get its 'creator and producer' there, but I have to do this, not with python, because to show it on the frontend. 2. How can I get the country from an Ip addre