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. Use the cd command to change the current directory to the top-level shapeEditor directory and type the following:

python manage.py startapp shared

This will create a new Python package named shared that will hold the contents of the shared app. 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 anywhere else in your Python path) are intended to be ...

Get Python Geospatial Development - Third 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.