The setup with django is not as easy as it looks.
First off, it is always recommended to use django (and almost every project) in a virtual environment. Fortunately, Python 3.3 onwards, we already have the venv module installed in the Python Standard Library. To setup the virtual environment in Windows, head over to the command prompt. Type the following in there:
python -m venv your_environment’s_name
If you are on any other platform, more information can be found on Django’s official Documentation. This activates the python virtual environment that we are going to need to create a django project. Next, we need to activate our virtual environment to install the related packages we need. To do this, we activate the virtual environment by typing the following in the command prompt.
your_environment’s_name\Scripts\activate.bat
Now, the command prompt looks something like this:
(your_environment's_name) C:\Users\username\folder>
Next, we install all the desired packages, for now, it is just django.
pip install django
Next, to create a basic framework of our project in django, we run the command:
django-admin startproject your_project_name
From this command, django automatically creates a Django project – a collection of settings for an instance of Django, including database configuration and setting for the applications we are going to create. More information can be found on Django Documentation