The web site is done by having a url mapper file (urls.py) within the task folder. Although you may use this file to control all of your URL mappings, it is much more usual to defer mappings into the associated application.
Start locallibrary/locallibrary/urls.py and note the text that is instructional describes a number of the approaches to make use of the Address mapper.
The Address mappings are handled through the urlpatterns adjustable, which can be A python directory of path() functions. Each path() function either associates A url pattern to a particular view, which is exhibited if the pattern is matched, or with another directory of URL pattern evaluation code (in this 2nd instance, the pattern becomes the “base Address” for habits defined into the target module). The urlpatterns list initially describes a function that is single maps all URLs using the pattern admin/ to your module admin.site.urls , which provides the management application’s own URL mapping definitions. Continue reading