Skip to main content

Posts

Showing posts from September, 2021

Create Your first Django Project via Python Virtualenvironment

 Python virtual environment is especially for Python 2 which support is now ended. In Python 3 the virtualenv is called the venv . Today we are going to create our first Django project in Python3 with the virtual environment. The virtual environment helps us separate different versions of libraries and manage different libraries for different projects. It also provides us clean installation for every project.  Let's create a new project for Django Python 3. Open a command window and navigate to your desired directory for creating your Django Python Projects. In my case, I always prefer the Django-Projects directory under the main Python-Projects  Directory in My Documents.  Create Python venv for Django Project Now let's create a virtual environment for Python 3 and the Django project which we are just going to create. If you go to the official venv documentation  you will find pretty good details about all the required steps to create it. We are just following ...