Book Image

PostGIS Cookbook

Book Image

PostGIS Cookbook

Overview of this book

Table of Contents (18 chapters)
PostGIS Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Developing web applications with GeoDjango – part 2


In this recipe, you will create the front office for the web application you created using Django, in the previous recipe.

Using HTML and the Django template language , you will create a web page displaying a map, implemented with Leaflet, and a list to the user containing all of the sightings available in the system. The user will be able to navigate the map and identify the sightings to get more information.

Getting ready

  1. Make sure you have gone through every single step of the previous recipe, keeping the back office of the web application working and its database populated with some entities.

  2. Activate the virtualenv you created in the Developing web applications with GeoDjango – part 1 recipe, as follows:

    • Use the following command for Linux:

      	$ cd ~/virtualenvs/
      	$ source chp09-env/bin/activate
      
    • Use the following command for Windows:

      	cd c:\virtualenvs
      	> chp09-env\Scripts\activate
      
  3. Install the libraries that you will use in this recipe...