Currently browsing: Python

How to setup Django debug toolbar

Django Debug toolbar is very helpful for a developer. It helps to see the SQL query, query times and many more. at a glance easily can debug Django project. Steps of setup: Install debug python package Debug must be true Internal IP must be mentions Configure in file configure configure static file of debug

Convert string to datetime and datetime humanize

From string to convert date time in python


Now if you want to represent your desire date like Sun May 20 10:10:55 2018

How to install Pip on Ubuntu

Pip is a package management system. Through pip we can get python package from PyPI . There are some ways to install pip in Ubuntu. In below steps of pip install will be described. Overview | pip install | pip install with curl | Basic commands of pip | Search pip packages | install python packages with pip | uninstall python package with pip

How to install specific python version on virtualenv

Some times we need specific python version for specific project.There are some easy way to install specific python version through virtualenv. In below I try to give two example to install python2.7 and python3.5 Example one: If you are already install virtualenv then write the code for make a virtualenv that will have python version

Install virtualenv and virtualenvwrapper on Ubuntu

Virtualenv store a private copy of python, PHP and packages of Python. There are some simple steps to install it on Ubuntu. Install pip: sudo apt-get install python-pip Install virtualenv sudo pip install virtualenv Now create a dir where all your virtualenvs file will be stores mkdir ~/.virtualenvs At this stage we can successfully use

How to deploy django with docker nginx server

There are some condition to deploy django in docker with nginx sever.One : Already create a project and run it locally and project is complete now want to deploy in docker container Two: Create a new project in docker container at first and after that work Today I will share my personal experience how I