Wazimap can be deployed like any Django application. It’s particularly easy to deploy on Heroku or a Heroku-like environment such as Dokku. You can use the Wazimap WSGI application variable from wazimap.wsgi.


Always ensure that you set the DJANGO_SETTINGS_MODULE environment variable to the module path of your file.

Deploying on Heroku or Dokku

See also

You can find example of the files necessary to deploy on Dokku or Heroku in the Wazimap deploy directory.

To deploy on Heroku on Dokku, create your application in the normal way. Then set these config variables:

  • DATABASE_URL=<your database URL>
  • DJANGO_SECRET_KEY=<a random secret key>
  • DJANGO_SETTINGS_MODULE=<your settings module>

You’ll need a Procfile, too:

web: gunicorn --worker-class gevent wazimap.wsgi:application -t 120 --log-file -


Wazimap requires GDAL to support data downloads in formats like KML. The easiet way to get these installed on Heroku or Dokku is to use multiple buildpacks. Create a file .buildpacks in your project’s root directory:

That tells Heroku and Dokku to install GDAL and then continue with the usual Python install. Alternatively, install GDAL for your platform manually.

By default, Wazimap doesn’t install the libraries to use GDAL because it can be difficult to install. Tell Wazimap to install everything it needs for GDAL by installing it with wazimap[gdal] or specify GDAL>=1.11.0,<2.0 in your requirements.txt.

Be sure that the platform GDAL and Python GDAL versions match.


Wazimap requires Django 1.9.

Add Wazimap and Django as dependencies for your project in your requirements.txt file:


Copy Wazimap’s ``app.json``<> into your project:

  "scripts": {
    "dokku": {
      "predeploy": "python compilescss && python collectstatic --noinput && rm -rf /var/tmp/wazimap_cache"

Finally, just use git push heroku or git push dokku master to deploy as you usually would.

Should you need to do a database migration, you can run dokku run <app-name> python migrate on your server.



We recommend running your website over HTTPS.

We recommend that you run your site over HTTPS (SSL). If you don’t use HTTPS, then any website that does use HTTPS will not be able to embed a chart from your Wazimap. This is because websites using HTTPS cannot load content from non-HTTPS sites.