INSTALLATION

Requirements

  • You need to install geodjango required libraries (See here)

PostGIS 2.4+ backend usage

  • You need a PostgreSQL database with PostGIS 2.4+ extension enabled. (See here)

  • You need to enable and use django.contrib.gis.db.backends.postgis database backend

pip install psycopg2
pip install django-vectortiles

Other database backend usages

pip install django-vectortiles[mapbox]

This will include subdependencies to generate vector tiles from mapbox_vector_tiles python library.