Skip to Content
Mastering Geospatial Analysis with Python
book

Mastering Geospatial Analysis with Python

by Silas Toms, Paul Crickard, Eric van Rees
April 2018
Beginner to intermediate content levelBeginner to intermediate
440 pages
11h 36m
English
Packt Publishing
Content preview from Mastering Geospatial Analysis with Python

URL patterns

Django URL patterns are very clean and simple and make for nice websites where the URLs are short and memorable. To make this possible, there is matching of the requested URL with a view (or application-level URL that matches with a view). The URLs and their destination are matched inside a list called urlpatterns

Within the project folder (C:\Projects\chapter12\chapter12), there is a script called urls.py just underneath settings.py. This script controls project-level URL routing. For this application, we'll also add application-level URLs inside the arenas folder and will point the project-level URL routing to the application URLs.

Open up the project-level urls.py, and copy the following code over any existing code:

from ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Geospatial Analysis with Python

Learning Geospatial Analysis with Python

Joel Lawhead

Publisher Resources

ISBN: 9781788293334Supplemental Content