Developing AngularJS Apps with VS Code

If you are switching from Brackets to VS Code for your AngularJS development, the first thing you are going to miss is the live preview option. VS Code does not have a built in server that can be easily activated. While there are 101 ways to run a local server,...

Microsoft announce official support for VSCode Python

Last week saw an interesting announcement from Microsoft MSDN blog. It announced that  Don Jayamanne, creator of the Python extension for Visual Studio Code joined Microsoft.  I was always impressed with the simplicity and usefulness of this extension and already wrote a blog post on that.  Don definitely deserve this recognition...

Django access control using LDAP

LDAP(Lightweight Directory Access Protocol) is a popular way to  control access in enterprise environments. In this post,   I will demonstrate how this can be used with django. Setup LDAP module –  django-auth-ldap LDAP Server – Forum Systems LDAP Browser/editor(Optional) – Apache Directory Studio.   Demo Project The demo project will...

Django Unit Testing in VSCode

While PyCharm Pro might be the most popular IDE for Python development, the community version supports neither Django nor JavaScript . VSCode is a free opensource alternative which has pretty good Python support. Python is supported in VSCode using an extension.  A quick start guide on the extension can be found...

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...