Exploring the Django project's structure
If you look at the Django website, it says Django: The Web framework for perfectionists with deadlines, and I could not agree more with this statement. So far, we haven't written any lines of code, and we already have a site up and running. In just a few commands, we can create a new project with the same directory structure and boilerplate code. Let's start with the development.
We can set up a new database and create a superuser, and, on the top of that, Django comes with a very nice and useful admin UI, where you can visualize our data, , and users.
In this section, we are going to explore the code that Django created for us when starting a new project so that we can get familiar with the structure. Let's go ahead and start adding the other components of our project.
If you have a look inside of the project's root directory, you will find a file called db.sqlite3
, another file called manage.py
, and, lastly, a directory with the same name as the project...