Getting ready

  1. If you are new to Django, check out the official Django tutorial at https://docs.djangoproject.com/en/dev/intro/tutorial01/ and then return to this recipe.

 

  1. Create a Python virtualenv (http://www.virtualenv.org/en/latest/) to create an isolated Python environment to use with the web application you will build in this recipe and the next. Then, activate the environment as follows:
    • Use the following commands in Linux:
                $ cd ~/virtualenvs/
                $ virtualenv --no-site-packages chp09-env
                $ source chp09-env/bin/activate
                cd c:\virtualenvs
                C:\Python27\Scripts\virtualenv.exe ...

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.