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:
We can see that a few things have happened here:
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):
What does this output mean?