00:00 Welcome to this final point that I want to address in this course. Here, you’re just going to revisit all of the commands that you used throughout this course, just as a quick reference of all the necessary commands for getting started with a Django project. Now, if you remember what you did throughout this course was you started by setting up a virtual environment. Then, you activated that virtual environment.
To set up a virtual environment, you use the command
python3 -m venv and then you define the path to your virtual environment. Now remember, this is going to look a little different for Windows but the command otherwise is going to be the same. Next, you need to activate the virtual environment.
These two commands are actually a little different between Unix systems and the Windows system. In Unix, you would say
source and then you give the path to the
activate script, which you can find inside of your virtual environment and the
And in Windows, you give the path to a similar script that is called
activate.bat but it’s in a little bit of a different structure, so you’re going to have to account for that depending on which platform you are.
And remember that if you want to define a specific version of Django, then you just add
== and the version number of Django that you want to install. Once Django is installed, the next thing you want to do is pin your dependencies and you can do this with the
pip module again and the
Once you have your Django project set up, you’re ready to start a Django app. The command for this is
python3 manage.py startapp and then the name of your app. And for each consecutive Django app that you want to create inside of your Django project—there can be more than one—you will just use the same command and pass it a new app name.
03:06 And that’s all! So once you’re at this point, you’re ready to get started working on your project, and let’s recap quickly what you did throughout this course in the final lesson of this course. See you there!
Become a Member to join the conversation.