Looking at the project's package directory

Next, let's have a look at the project's package directory. There, you will find a bunch of files. The first file you will see is settings.py, which is a very important file, as it is where you are going to put all the settings of our application. In this settings file, you can specify which apps and database you will use, and you can also tell Django where to search for static files and templates, middlewares, and more.

Then you have the urls.py; this file is where you specify the URLs that will be available on your application. You can setup URLs on the project level but also for every Django app. If you examine the contents of this urls.py file, you won't find much detail. Basically, you will ...

Get Python Programming Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.