Introduction to django web framework

Introduction to django web framework
Django is a high level python web framework. It is a open source web framework released under the licence of BSD. Django allows developers to build web applications in a short span of time. Django applications are powerful, fast, most secure and exceedingly scalable. Django was designed to help developers to complete the web applications as quickly

Read more

using custom user model in django

using custom user model in django
When we start a new project we have to use custom user model in django application. Because, django provides basic fields required for the user. We may require to add extra fields in the future. So, we have to use custom user model. To implement the custom user model in django application we do not need to rewrite the model from the scratch. We ca

Read more

why tuple is faster than list in python ?

why tuple is faster than list in python ?
In python we have two types of objects. 1. Mutable, 2. Immutable. In python lists comes under mutable objects and tuples comes under immutable objects. Tuples are stored in a single block of memory. Tuples are immutalbe so, It doesn't require extraspace to store new objects. Lists are allocated in two blocks: the fixed one with all the Python objec

Read more

How to install sublime text on Ubuntu ( Linux)

How to install sublime text on Ubuntu ( Linux)
Sublime text editor is a light weighted and best featured text editor available on web. It offers both trail version and licenced version of sublime. It is the best text editor for development and especially for python development. Sublime is a popular cross-platform text editor. Sublime Text editor offers official Linux apt repository to make it e

Read more

How to install python virtualenv?

How to install python virtualenv?
virtualenv is a python package. It is used to create an isolated python environments. virtualenv allows us to work with different versions of packages for different projects. when we work with projects, the requirements will change from project to project. If we use python package lets say celery==1.0 in some projects we may need to use celery==2.0

Read more

How to Install pip in Ubuntu (Linux)

How to Install pip in Ubuntu (Linux)
pip stands for "preferred installer program". pip - python package manager is used to manage and install python packages software packages. It is a package management system.we can find all python packages irrespective of the python version python2 or python3 which were uploaded to Python Package Index(PyPI). pip is the python package manger used t

Read more

install pip on windows

install pip on windows
pip - python package manager. It manages the python packages. It's an opensource software. pip stands for "preferred installer program".pip is used to install and manage software packages written in Python. It is a package management system.we can find all python packages irrespective of the python version python2 or python3 which were uploaded to

Read more

how to install postgresql on windows

To install PostgreSQL on your windows OS follow the given steps and make sure you have turned Third Party Antivirus off while installing. It's always recommended to install the latest version of PostgreSQL because, if any bugs are in the older version that fixed in the new versions. Go to the url "https://www.openscg.com/bigsql/postgresql/installer

Read more

how to install python on windows

To install python on windows go to "python software download for windows" and choose the python version and download it. Most of the python applications are upgraded to python3 so, I recommend you to download the python version 3. After downloading follow the below steps to install it Go to the directory where the python software is downloaded Sele

Read more

reading and writing csv files using python

reading and writing csv files using python
CSV is stands for comma seperated values. CSV file format is most commonly used format for imports and exports of data to spreadsheets and databases. Advantages to using csv edit csv file manually with any text editor ease of parsing and implementing the data in csv faster to handle the csv and smaller file size csv is considered to be standard fo

Read more

python memory management - memory allocation and garbage collection

python memory management - memory allocation and garbage collection
Memory allocation in python In python everything is considered as an object. In python we do not have variables instead python has names. When we declare a name/variable in python it stores the name in the memory. Every python name/variable points to its reference in the memory and reference points to the object. Let's consider the example code "a

Read more

signup or sign-in using facebook to django application

signup or sign-in using facebook to django application
Nowadays most of the users are having the facebook account. Registration/Login will take the time fill the form and submit to create or login to our website. Adding the functionality to login/signup with facebook makes it very easy to login or to register to our website. There are many third party django packages are available to add facebook signu

Read more

signup or sign-in using google to django application

Nowadays most of the users are having the facebook account. Registration/Login will take the time fill the form and submit to create or login to our website. Adding the functionality to login/signup with google makes it very easy to login or to register to our website. There are many third party django packages are available to add google signup or

Read more

generators and its usage in python

generators and its usage in python
Lets start with generators and its usage in python. A generator is a function in python which returns a python object. The returned object is an iterable object it like an array. Every object in the array is just a lazy function with parameters are ready for call. Generators are memory efficient because of its lazy evaluation. When we call method "

Read more

understanding of python slice notation

understanding of python slice notation
Lets start with understanding of python slice notation. We can access element in python lists/iterables by indexing. Slicing in python lists is defined as taking a part of the list from a bigger list. In python slicing takes 3 arguments 1. start index, 2. end index, 3. step to skip number of indexes. when we take slice in list it will create a new

Read more

Basic understanding of class in python

Basic understanding of class in python
Before starting with understanding classes in python lets talk about the basic terminology of object oriented programming. Class: A class is a basic design or a plan to an object. Class explains about the properties and behaviour of an object. In other words a class can be defined as it is a blueprint that defines the variables and methods common t

Read more

how to use *args and **kwargs in python

how to use *args and **kwargs in python
Python programming language is a simple and powerful language. It provides simple syntax with powerfull features. In this article we will discuss how to use *args and **kwargs in python. *args and **kwargs are magic powers of python. we use *args for unpacking of arguments and **kwargs for unpacking of keyword arguments. {% include "adsense/respon

Read more

iterators in python

iterators in python
Iterators in python is one of the simple and strong features of python. We already know that in python everything's an object. So, iterator is also a python object, which has a special method called "next". In python iterator acts like a container. When we call method "next" on the iterator object. It will creates and return the objects onfly. Aft

Read more

Support Me on Patreon