Django is a Popular Web framework in the pythonic world since its inception in 2005 as there's consistent growth of developers and users alike ever since.
If you love Python in the Backend, creating a Django app is more fun than you thought.
Virtual environment (venv)
Virtual environment makes sure the packages and dependencies you install do not end up globally in the site-packges folder of your Python installation directory and in the current project folder.
The following command will create a virtual environment in the current working directory
py -m venv venv
You can activate your virtual environment using the command (in windows)
.\venv\Scripts\activate
Once you have your virtual environment activated, we are ready to go.
Installing Django
Django package can be installed with following command
py -m pip install Django
After the installation is completed, we can start a new Django project
django-admin startproject demo .
Notice the presence of '.' a dot at the end of the command. Omitting this dot will result in a nested project structure same as our app name 'demo1'(in this case)
Starting the Dev Server
Now that we have our demo project created, let's check if our django app is installed properly
py manage.py runserver
You will notice certain warnings about migrations which you can ignore for now
That's it. We now have our first Django app up and running