Monthly Archive: August 2017

Auto registering models in Django Admin

Django admin is a very valuable tool for developers especially during the development phase. Normal way of registering a model to the admin is as below.

  Four lines of code for a single model. Now consider the amount of repeated code required if you have 10 models in...

Django ORM Union, Intersection and Difference

Starting from Version 1.11 (April 2017),  Django ORM comes with Union, Intersection and Difference capabilities . While it was possible to implement this capability our own, it is nicer to have the ‘batteries included’. Lets examine this capability using a simple model.

I have added some sample data so...

Email Hosting Outside Your Web Host

There are many reasons to host your email outside of  your web host and there are entire blog posts  discusses this topic.  If you are hosting your emails externally, you can switch your web hosting provider easily  without impacting your business. Futher more there are email hosting providers who provide...

Tableau – Using SQL queries to get data

Tableau allows to connect to a wide variety of database systems and most of the operations like joins, filtering and ordering can be done without writing a single line of SQL. But what can be done  if the data required is not readily available in the database tables? There are...