-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Python Geospatial Development - Second Edition - Second Edition
By :
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 path) are intended to be reusable—that is, you can take that application and use it in a different project. The applications we're defining here aren't like that; they can only work as part of the shapeEditor project, and so we need to move the newly...
Change the font size
Change margin width
Change background colour