How to do it...

Carry out the following steps:

  1. Create a Django project using the django-admin command with the startproject option. Name the project wildlife. The command for creating the project will be as follows:
      (chp09-env)$ cd ~/postgis_cookbook/working/chp09
      (chp09-env)$ django-admin.py startproject wildlife
  1. Create a Django application using the django-admin command with the startapp option. Name the application sightings. The command will be as follows:
      (chp09-env)$ cd wildlife/
      (chp09-env)$ django-admin.py startapp sightings

Now you should have the following directory structure:

  1. You will need to edit some files. Open your favorite ...

Get PostGIS Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.