Git Product home page Git Product logo

djangocms-googlemap's Introduction

django CMS Google Map

pypi build coverage

django CMS Google Map is a set of plugins for django CMS that allow you to implement Google Map into your website.

This addon is compatible with Divio Cloud and is also available on the django CMS Marketplace for easy installation.

image

Contributing

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.

Documentation

See REQUIREMENTS in the setup.py file for additional dependencies:

  • Python 2.7, 3.4 or higher
  • Django 1.11 or higher

Installation

For a manual install:

  • run pip install djangocms-googlemap
  • add djangocms_googlemap to your INSTALLED_APPS
  • run python manage.py migrate djangocms_googlemap

Configuration

django CMS Google Map requires an API key from Google, that needs to be supplied in your Django settings: :

DJANGOCMS_GOOGLEMAP_API_KEY = ''

Note that the provided templates are minimal by design. You are encouraged to adapt and override them to your project's requirements. The included demo JavaScript does not require jQuery or any other 3rd party library other than Google Maps own JavaScript, which will be loaded automatically.

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.

Running Tests

You can run tests by executing:

virtualenv env
source env/bin/activate
pip install -r tests/requirements.txt
python setup.py test

djangocms-googlemap's People

Contributors

finalangel avatar chive avatar yakky avatar pure-zero avatar mkoistinen avatar digi604 avatar czpython avatar vxsx avatar stefanfoulis avatar danielfay avatar kese avatar retailify avatar bplociennik avatar vthaian avatar jsma avatar lory87 avatar bittner avatar

Watchers

James Cloos avatar 江湖隐行客 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.