Are you ready to create your first Django project but don't know where to start? Don't fret, just follow the instructions below...

First we need to create a new directory to contain our first Django project.

$ mkdir first-django

Now we need to change directory into our newly created project directory.

$ cd first-django

Once we are in our new directory we can install Django using pipenv!

$ pipenv install django

We should see some interesting output after we run the above command:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/efffb913-5314-4fb5-a62c-d4d77cf81254/Screen_Shot_2021-06-15_at_11.31.36_AM.png

We can see that a few things have happened here:

What is a Pipfile?

This file tells our project what dependencies are needed in order for the code to run successfully. If you would like to see what is in our Pipfile we can run the following command:

$ bat Pipfile

<aside> 🆘 If you get an error saying command not found when you attempt to run bat Pipfile it means that you do not have the bat utility installed. Run brew install bat to install it. Alternatively, you can run cat Pipfile if you do not wish to install the bat utility.

</aside>

Your output should look something like this (your Python version might be different):

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/ded5758e-2519-4b5a-8265-4643a6fe8142/Screen_Shot_2021-06-15_at_11.36.23_AM.png

What does this output mean?