Optional Steps¶
Connect Mapbox¶
The following instructions will help you install the Mapbox API. This API will allow you to;
- Obtain Coordinates of campus locations
- Display a map of the coordinates
- Navigate to your project’s folder
$ cd /var/www/<project_name>
- Edit the project’s settings.py to include Mapbox
$ nano ./<<project name>>/settings.py
- Add the following line to the “INSTALLED_APPS” section
MAPBOX_API_TOKEN = '<<MAPBOX_API_TOKEN>>'
NearBeach will automatically find the Mapbox token and start displaying the maps. If the maps are not displaying please check that you are using the correct API Token