Learn Django
Ready Your CMD or Terminal
Several lessons will require you to use your computer’s command prompt (Windows), or terminal (Mac). Some commands will work on both Windows and Mac, while others will be different. Therefore, where needed, I will specify instructions by OS. Here are the different ways I may do that.
When the commands are different, you’ll see a separate instruction set like this:
On a Mac
1 2
# check your working directory $ pwd
On Windows
1 2
# check your working directory C:\ echo %CD%
When the commands are mostly the same, you may see something like this:
1 2 3 4 5 6 7 8
# change directory $ cd hello-world # On a Mac: list directory files $ ls -al # On Windows: list directory files C:\ dir
When it doesn’t matter if you’re on Windows or a Mac, you’ll see the instruction set like below (note the $ is the same as a Mac and not a PC).
1 2
# change directory $ cd hello-world