How to install django on linux

First it’s recommended to create a virtual environment, we must perform the following steps in this order:

Create a directory where the project will be

$ mkdir projectx

Enter the directory

$ cd projectx

Create virtual environment

$ python3 -m venv venv

Activate the created environment

$ source venv/bin/activate

Install the framework django with pip

$ pip install django

Initialize GIT here if you haven’t already

$ git init

Create the .gitignore file here:

$ touch .gitignore

Initializing the django project

$ django-admin startproject projectxApp 

Run the server

$ python3 runserver

and finally open the url


Related Posts

Leave a Reply

Your email address will not be published.