understanding the request-response lifecycle in Django

understanding the request-response lifecycle in Django

Let's start understanding  the  request-response lifecycle of a Django application. Every web application uses HTTP/HTTPS protocol. In the HTTP/HTTPS protocol client sends a request to the server based on the request data server sends the response back to the client. It's the basic...

Read more

django custom path converters

django custom path converters

In django version 2.0  introduced new way to write url patterns using "path". In django 2.0 regular expression type "url" is removed and added 2 things to work with urls. 1. using "path" and 2. using "re_path". For writing the clean urls django provided the path converters. It helps us to wr...

Read more

working with xls and xlsx files in python

working with xls and xlsx files in python

Let's start working with xls and xlsx files in python. We can read data from xls or xlsx files using python programming and we can also write to xls or xlsx files using python programming. We do this by using the python package "openpyxl".  The package "openpyxl" can be found in Python Packa...

Read more

django image and file upload using ajax

django image and file upload using ajax

Let's learn about how to work with Django image and file upload using Ajax. In most of the cases I personally use django file or image uploads using ajax. If we use normal upload then browser will reload the page in order to load the requested response and we will not have the files in the f...

Read more

working with vim editor in ubuntu

working with vim editor in ubuntu

Let's start working with vim editor  on ubuntu. vim is a light weight and powerful text editor used with the command line. It is very useful for system administrators. when deploying the application on the server normal GUI based text editors will not work. Because, GUI is absent on&nbs...

Read more

Python working with lists

Python working with lists

List is a one of the most used data types in python programming.  It is a heterogeneous and  ordered set of data structure in python. As it is an ordered data structure so, it obiviously supports indexing. We can access the elements of a list using index. It supports both posi...

Read more

Python working with frozenset data type

Python working with frozenset data type

Frozenset is an immutable unordered collection of unique elements. It holds collection of element but it does not guarantee the order of the elements in it. As it is immutable we cannot able to update the data once created. when we need to get a unique elements out of group of the repeated elemen...

Read more

Python working with tuple data type

Python working with tuple data type

Tuple is a sequential data structure in python. It is a immutable data type so, we cannot make any modifications to the tuple once created. Tuple stores the data in a sequencial manner. we can access the data in the tuple with indexs. Form the from index starts from 0, 1,2, 3, etc. Tuple also sup...

Read more

Python working with strings

Python working with strings

String is a most used data type in python programming. A string is simply a series of characters. Anything inside quotes is considered as a string in Python, we can use either single or double quote. As python is a case sensitive language so string 'an' is considered different from string 'A...

Read more

python polymorphism

python polymorphism

Polymorphism can be defined as declaring a uniform interface that is not aware of the type of the data, leaving implementation details to concrete data types that implement the interface. In general terms we can define it as different objects acts differently for same interface. In python we...

Read more
Blog Archive