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 manage.py runserver
and finally open the url
http://127.0.0.1:8000/
😉