Book Image

Python Geospatial Analysis Cookbook

Book Image

Python Geospatial Analysis Cookbook

Overview of this book

Table of Contents (20 chapters)
Python Geospatial Analysis Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Other Geospatial Python Libraries
Mapping Icon Libraries
Index

Setting up a GeoDjango web application


We need to get some basic Django groundwork done and this will be a very high-level fly over at setting up the required basics to start a Django web application. Check out the official Django tutorials for further information at https://docs.djangoproject.com/en/dev/intro/tutorial01/.

Note

If you are not familiar with Django or GeoDjango, I would highly recommend that you read through and complete the online tutorials, starting with Django at https://docs.djangoproject.com/en/dev/ followed by the GeoDjango tutorial at https://docs.djangoproject.com/en/dev/ref/contrib/gis/tutorial/. For this chapter, it is assumed that you are familiar with Django, have completed the entire online Django tutorial, and are, therefore, familiar with Django concepts.

Getting ready

We are going to build a routing web service using the Django REST framework (http://www.django-rest-framework.org/). All that we need to implement is a basic web service that you can install with...