Implementing the shapefile list view
When the user first opens the ShapeEditor, we want them to see a list of the previously uploaded shapefiles, with Import, Edit, Export, and Delete options. The Django application that implements this list view and its related functionality will be called shapefiles
; let's go ahead and create this application now.
Open a terminal or command-line window, cd
into the top-level shapeEditor
directory, and enter the following command:
python manage.py startapp shapefiles
Once again, this creates the shapefiles
application at the top level so that it is a reusable application. Move this inside the shapeEditor
directory by typing this:
mv shapefiles shapeEditor
While we're at it, go into the shapeEditor/shapefiles
directory and delete the admin.py
and tests.py
modules, as we won't need these. Then, edit the shapeEditor/settings.py
module and add the following entry to the end of the INSTALLED_APPS
list:
'shapeEditor.shapefiles',
Our...