Creating a new Django project
To create a new Django project, run the following command:
django-admin startproject gamestore
Note that django-admin
created a directory called gamestore
 that contains some boilerplate code for us. We will go through the files that Django created in a little while, but, first, we are going to create our first Django application. In the Django world, you have the project and the application, and according to the Django documentation, the project describes the web application itself, and the application is a Python package that provides some kind of feature; these applications contain their own set of routes, views, static files and can be reused across different Django projects.
Don't worry if you don't understand it completely; you will learn more as we progress.
With that said, let's create the project's initial application. Run cd gamestore
, and once you are inside the gamestore
directory, execute the following command:
python-admin startapp main
If you list the...