Preparing for this chapter
Start by creating a new app in your project called chapter_9
by following the steps discussed in Chapter 2, Project Configuration, in the subsection titled Creating a Django app. As discussed in that section, don't forget to change the value of the name =
variable for your app class found in the /becoming_a_django_entdev/becoming_a_django_entdev/chapter_9/apps.py
file to now point to the path where you installed your app. Be sure to also include this app in the INSTALLED_APPS
variable found in the settings.py
file as well.
In the main urls.py
file of the site, add the following two paths:
# /becoming_a_django_entdev/urls.py
...
urlpatterns = [
path(
'',
include(
'becoming_a_django_entdev.chapter_9.urls&apos...