Adds Google Maps plugins to django CMS.
This is a an open-source project. We’ll be delighted to receive your feedback in the form of issues and pull requests. Before submitting your pull request, please review our contribution guidelines.
One of the easiest contributions you can make is helping to translate this addon on Transifex.
See REQUIREMENTS in the setup.py file for additional dependencies:
- Python 2.7, 3.4 or higher
- Django 1.11 or higher
For a manual install:
- run pip install djangocms-googlemap
- add djangocms_googlemap to your INSTALLED_APPS
- run python manage.py migrate djangocms_googlemap
django CMS Google Map requires an API key from Google, that needs to be supplied in your Django settings:
DJANGOCMS_GOOGLEMAP_API_KEY = ''
This addon provides a default template for all instances. You can provide additional template choices by adding a DJANGOCMS_GOOGLEMAP_TEMPLATES setting:
DJANGOCMS_GOOGLEMAP_TEMPLATES = [ ('feature', _('Featured Version')), ]
You’ll need to create the feature folder inside templates/djangocms_googlemap/ otherwise you will get a template does not exist error. You can do this by copying the default folder inside that directory and renaming it to feature.
You can run tests by executing:
virtualenv env source env/bin/activate pip install -r tests/requirements.txt python setup.py test