Blog

Viewing posts tagged Python

A complete guide/tutorial to Django

What is Django?

Django is a Python framework that make developing database driven website that can be set up in mere hours for most simple websites. The elegance of Django is that the actual coding we have to do is very less and many a boilerplate coding that every developer codes in every app is already implemented. However everything is still kept customizable and tweak-able. There is also the obvious advantage of being able to use the enormous list of Python library modules.

Python Lists, Shallow and Deep Copy

In python, as we know copying lists is not same as copying variables of data types like integer. Let us see different situations we come across while copying the lists.

Python and the Context Managers

Context managers is one of those features of Python that makes it extremely easy to write clean code. Context managers are extensively used by Python programmers, but very few understand how they work. Let us explore them a bit.

Logging in Django

Introduction

Logging is a very important aspect of software development and maintenance. It helps out the developer point out the bugs, errors, point of failures and potential vulnerabilities of an application. Thus it was but obvious that Django comes bundled with its own logging module.

Dynamic fields in Django Rest Framwork serializers

Often we need to have custom fields that must be calculated dynamically. In Entity-Relationship model notation the fields are called Derived Attributes. Such fields are derived from other fields of the same entity (model) and they might change over time (age, for example). We can create dynamic fields in django in more than one way.

Recent Posts

Archive

2022
2021
2020
2019
2018
2017
2016
2015
2014

Tags

Authors

Feeds

RSS / Atom