Defining Project URLs & App URLs
Main URLs (new_project/urls.py)
Modify the project's urls.py as below:
- If you are following this lab from our previous lab Getting Started With Django, the
urls.pyfile may look like this:

- You may need to modify some of the code like this:

- The final file may look like this

App URLs (home/urls.py)
- Create
urls.pyin thehomeapp: - Modify the
urls.pyfile in the app's directory to map the url defined to the appropriate view:

13

