I struggled a lot for sending a good customized template in an email from my code. I used many email sending utility and i was able to send emails successfully from my code. But they didn't really look very good. It was just some email with some text in it. So Used one of the … Continue reading Customized email with django
Tag: datetime
Backend view for follower/following database logic
Hi Guys I have got a request from @trafffic98 to explain the logic as a follow up of follower/following database logic, written here. so here in this blog i will just put the logic of follow and unfollow button. Follow def follow(request): """ Method is used to follow an user. """ response = {} # … Continue reading Backend view for follower/following database logic
Follower/Following database logic with django
I have used a lot of social networking sites, including twitter and instagram. Sometimes i wonder how this FOLLOW concept work in these applications. I have done a bit of investigation and finally came up with a way to do that in django. So here it goes .... The idea is We have Auth user in … Continue reading Follower/Following database logic with django
Scraping PDF content without any scraping tool using python.
Scraping the internet. What is it? How it works? And many more questions associated with it? Well there are so many answers to it, like beautifulsoup, selenium (uh its a automation tool but you can use it for scrapping also with python 😉 ), mechanise, and many more ways. But here i tell you the secret … Continue reading Scraping PDF content without any scraping tool using python.
Arrow, better date time with python
You might have already seen the time format showing "posted just now" or "last seen 12 days ago" etc. Well its not only java-script every-time. You can do it with python also. in much easier and better way. Let me walk you through this. There is an python library called "Arrow". http://crsmithdev.com/arrow/. you can format date … Continue reading Arrow, better date time with python