O'Reilly logo

Python Geospatial Development - Second Edition by Erik Westra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the shared application

The shapeEditor.shared application will hold the core database tables and python modules we use throughout the system. Let's go ahead and create this application now. cd into the shapeEditor project directory and type the following:

python manage.py startapp shapeEditor

This will create a directory within the shapeEditor project directory named shared. This application directory will contain various files Django needs in order to run.

Note that, by default, a new application is placed in the topmost shapeEditor directory. This means you can import this application into your Python program like this:

import shared

Django's conventions say that applications in the topmost directory (or somewhere else on your Python ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required