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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.