Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 848 Bytes

README.rst

File metadata and controls

36 lines (23 loc) · 848 Bytes

mezzanine_gasStation_map

Plugin for mezzanine

Quick start

1.-Install leaflet for django:

pip install django-leaflet

2.- Add mezzanine map to INSTALLED_APPS:

INSTALLED_APPS = [
  ...
  'leaflet',
  'mezzanine_gasStation_map',
  ...
]

3.- Include in yourProject/yourProject/urls.py:

import mezzanine_gasStation_map.urls

4.- Include the polls URLconf in yourProject/yourProject/urls.py like this:

url('map/', include('mezzanine_gasStation_map.urls')),

5.- Create links in yourProject:

ln -s /home/user/git/LeafletGeoJSON/mezzanine_gasStation_map .
ln -s /home/user/git/LeafletGeoJSON/mezzanine_gasStation_map/static ./static/mezzanine_gasStation_map
ln -s /home/user/git/LeafletGeoJSON/mezzanine_gasStation_map/templates ./templates/mezzanine_gasStation_map