Django: How to start a project
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:
Django: How to install and setup python
A short guide on how to install python on your machine. What is Python? It's one of the most popular programming…
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:
Django: Create a virtual environment
Understanding what a virtual environment is and how to create them for our Django projects. What is a virtual…
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:
A final note…
For those that are interested in learning Django from scratch, feel free to check out my latest course:
Originally published at https://www.cloudwithdjango.com on July 31, 2022.