Write awesome and beautiful code in python by using simple plugins. I use python flake8 lint for code coding standards and good coding practice. the following video describes. The usage. https://www.youtube.com/watch?v=NrdbCXxOF7o Please like/comment/share the video if you like it. Thanks
Tag: python
Python 2, Python 3 or both ?
Python programs are generally expected to run slower than Java programs, but they also take much less time to develop. Python programs are typically 3-5 times shorter than equivalent Java programs. It is often 5-10 times shorter than equivalent C++ code! Anecdotal evidence suggests that one Python programmer can finish in two months what two … Continue reading Python 2, Python 3 or both ?
Site Is Down Comeback Later django
If you are developing some web app really good and expecting a good amount of traffic there 24X7 or even if people know that you have own a domain and you are going to release that app soon It's a very bad option to show some page break to user. I will Suggest quickly install … Continue reading Site Is Down Comeback Later django
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
Upgrade django version (1.3 to 1.6 for the current example) Part-3
Hey guys. I am back with the part 3 of django version upgrade. Let me walk you through the next steps. Changed urls libraries. This is a small change required for the urls.py. Instead of writing from django.conf.urls.defaults import patterns, include, url now you have to write from django.conf.urls import patterns, include, url. There are … Continue reading Upgrade django version (1.3 to 1.6 for the current example) Part-3
Upgrade django version (1.3 to 1.6 for the current example) Part-1
Hey guys. Hope you doing well. This time i am going to write about upgrading django version. I have been working in a very complecated project which was built in django 1.3. We are in year 2015 n i was working on django 1.3, which was released about 3-4 years back. The framework was almost … Continue reading Upgrade django version (1.3 to 1.6 for the current example) Part-1
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
Lets get started with pymongo
Hi everyone Mongodb is simply a nosql database structure, used for handling huge data. Pymongo is the driver used for using mongo db with python. Installation pip install pymongo The above command will install pymongo in a linux based system. Usage # It's simply a python file which uses pymongo # driver to interact with … Continue reading Lets get started with pymongo