Configure Django with postgres

Django comes preconfigured with SQLite db. This is goood for playing with django features or doing some lightweight apps. For big applications we have to use the mysql or postgreSQL db. This article will give a step by step procedure to install and configure postgreSQL with django framework. Step 1 – Create python virtualenv for our… Continue reading Configure Django with postgres

Installing and using virtualenvwrapper on ubuntu

Virtualenvwrapper is wrapper on virtualenv tool. This is useful when we are working with different versions of python and want to keep site packages seperate for each project. Here are quick step by step instructions on installing and using virtualenvwrapper. I have done it on Ubuntu 16.04 but steps should be same for other ubuntu versions… Continue reading Installing and using virtualenvwrapper on ubuntu

Deploying Django with nginx and gunicorn

Assumption – Server – Ubuntu 14.04 with non-root user and sudo access (user django in this example) Setup django project – Clone/copy your django project in home directory. in this example I am putting it in /home/django/myproject (myproject is django project directory) Install virtualenv – To keep python dependencies for different projects separate we use… Continue reading Deploying Django with nginx and gunicorn