Within this section, we'll install Django add GeoDjango configurations, and add the required libraries (including the GDAL and OGR) that bring spatial functionality to Django. Installing the Django 2 module for Python 3, and configuring the GeoDjango components, depends on a number of steps. These include:
- Using pip to install Django 2
- Installing and enabling a spatial database (if not already installed)
- Installing GDAL/ OGR/PROJ4/GEOS
- Configuring the Windows environment variables
- Generating a project
- Opening settings.py
- Adding django.contrib.gis to INSTALLED_APPS
- Configuring database settings to point to the spatial database