How to start a Django project for the first time.
Ensure that python has been installed on your computer. The link below will take you through an in-depth step-by-step guide:
Once you have successfully installed python on your computer, you need to create a virtual environment. The link below will take you through an in-depth step-by-step guide on understanding what a virtual environment is and how to create one:
Note: Step 3 is a direct follow-up of the guide that you obtained in step 2
Next, we will create our first Django project and run it and connect it to our local development server.
Make sure that you activate your virtual environment as follows:
Next, we need to install Django via the pip command:
Next, we need to start a new Django project. You can give it any name that you want. In this case, I'm calling it - "myproject1".
Now you need to cd into your Django project.
We want to now test our development server, so we must type in the following command:
python manage.py runserver
We can navigate to the URL below to see if our server is online: