All Projects → erdem → Django Map Widgets

erdem / Django Map Widgets

Licence: mit
Pluggable map widgets for Django Postgis fields

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Django Map Widgets

django-lock-tokens
A Django application that provides a locking mechanism to prevent concurrency editing.
Stars: ✭ 19 (-94.82%)
Mutual labels:  django-admin
flask-djcelery
An example project for configuring Djcelery with Flask application and dynamically changing tasks via REST API and through django admin
Stars: ✭ 13 (-96.46%)
Mutual labels:  django-admin
Django Fluent Dashboard
An improved django-admin-tools dashboard for Django projects
Stars: ✭ 266 (-27.52%)
Mutual labels:  django-admin
django-google-optimize
Django-google-optimize is a Django application designed to make running server side Google Optimize A/B tests easy.
Stars: ✭ 37 (-89.92%)
Mutual labels:  django-admin
django-admin-page-lock
Page Lock for Django Admin allows developers to implement customizable locking pages.
Stars: ✭ 13 (-96.46%)
Mutual labels:  django-admin
django-restful-admin
Django admin restful api
Stars: ✭ 51 (-86.1%)
Mutual labels:  django-admin
django-admin-confirm
AdminConfirmMixin is a mixin for ModelAdmin that adds confirmations to changes, additions and actions.
Stars: ✭ 34 (-90.74%)
Mutual labels:  django-admin
Djangocms Admin Style
django CMS Admin Style is a Django Theme tailored to the needs of django CMS.
Stars: ✭ 282 (-23.16%)
Mutual labels:  django-admin
django-editorjs-fields
Django plugin for using Editor.js
Stars: ✭ 47 (-87.19%)
Mutual labels:  django-admin
Django Wpadmin
WordPress look and feel for Django administration panel
Stars: ✭ 259 (-29.43%)
Mutual labels:  django-admin
django-streamfield
This is a simple realisation of StreamField's idea from Wagtail CMS for plain Django admin or with Grappelli skin.
Stars: ✭ 62 (-83.11%)
Mutual labels:  django-admin
django-admin-actions
Display Django admin custom actions in changelist, changeview or per row in changelist.
Stars: ✭ 30 (-91.83%)
Mutual labels:  django-admin
django-any-urlfield
An improved URL selector to choose between internal models and external URLs
Stars: ✭ 43 (-88.28%)
Mutual labels:  django-admin
django-admin-autocomplete-list-filter
Ajax autocomplete list filter for Django admin
Stars: ✭ 68 (-81.47%)
Mutual labels:  django-admin
Django Admin Easy
Collection of admin fields and decorators to help to create computed or custom fields more friendly and easy way
Stars: ✭ 265 (-27.79%)
Mutual labels:  django-admin
django admin chart js
An example repo showing how to add Chart.js to Django admin
Stars: ✭ 35 (-90.46%)
Mutual labels:  django-admin
django-csv-export-view
Django class-based view for CSV exports
Stars: ✭ 17 (-95.37%)
Mutual labels:  django-admin
Awesome Django Admin
Curated List of Awesome Django Admin Panel Articles, Libraries/Packages, Books, Themes, Videos, Resources.
Stars: ✭ 356 (-3%)
Mutual labels:  django-admin
Django Page Cms
Official Django page CMS git repository
Stars: ✭ 277 (-24.52%)
Mutual labels:  django-admin
Django Mptt Admin
Django-mptt-admin provides a nice Django Admin interface for Mptt models
Stars: ✭ 256 (-30.25%)
Mutual labels:  django-admin

Coverage Status Build Status PyPI version

Django Map Widgets

Configurable, pluggable and more user friendly map widgets for Django PostGIS fields.

Achievements

The aim of the Django map widgets is to make all Geo Django widgets more user friendly and configurable. Map widgets are currently supporting only Google Map services, but we are planning to add other major map services.

Installation

pip install django-map-widgets

Add ‘map_widgets’ to your INSTALLED_APPS in settings.py

INSTALLED_APPS = [
     ...
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    'mapwidgets',
]

Collects the static files into STATIC_ROOT.

python manage.py collectstatic

Django Admin

from django.contrib.gis.db import models
from mapwidgets.widgets import GooglePointFieldWidget


class CityAdmin(admin.ModelAdmin):
    formfield_overrides = {
        models.PointField: {"widget": GooglePointFieldWidget}
    }

Django Forms

from mapwidgets.widgets import GooglePointFieldWidget, GoogleStaticOverlayMapWidget


class CityForm(forms.ModelForm):

    class Meta:
        model = City
        fields = ("coordinates", "city_hall")
        widgets = {
            'coordinates': GooglePointFieldWidget,
            'city_hall': GoogleStaticOverlayMapWidget,
        }

...and your template should look something like this

<form method="POST" action="">
    {% csrf_token %}
    {{form.media}}
    {{form.as_p}}
</form>

Requirements

Django Map Widgets needs Jquery dependency to work in your regular views. In Django Admin case, you don't need to provide the jQuery. Just add map widgets to your django admin forms.

Screenshots

Google Map Point Field Widget

Google Map Static Overlay Widget

This widget is working with Magnific Popup jQuery plugin.

Release Notes

v0.3.0

  • Implemented a new demo project with Django 2.x.
  • Fixed Django Admin jQuery conflicts. (#100)
  • Fixed a new widget JS instance initialising issue for Django Admin Inlines. (#84)
  • Added Python 3.8 env settings to TravisCI configuration.

v0.2.3

  • Fixed python six module import issue.
  • Fixed PostGIS setup errors in CI pipeline.
  • Added Estonian language support.

v0.2.0

  • Fixed Python 3.6, Django 2.x compatible issues.
  • Fixed SRID format converter issues.
  • Removed pyproj package dependency.
  • Various development infrastructure updates. (Docker, Fabric files etc.)
  • Point map widget JS objects associated to the map HTML elements with jQuey $.data method.
  • Passing Google Place AutoComplete full response object to jQuery triggers.

v0.1.9

  • Google Place Autocomplete object binding to jQuery triggers.
  • Implemented Google Geocoding support for the marker coordinates.
  • Added custom widget settings feature for each widget.
  • Added Portuguese localisation support.
  • Fixed Google Place Autocomplete widget bugs in Django Admin Inlines.
  • Fixed Python 3.6 errors.
  • Fixed Javascript bugs.
  • The GitHub repository Integrated with Travis CI.
  • Implemented unit tests for backend code. (%100 code coverage)
  • Change development environment from Vagrant to Docker.

v0.1.8

  • Full documentation integrated to readthedocs.org.
  • Fixed Google Map static widget issues.
  • Added Russian localisation support.
  • Added [Google Places Autocomplete] options support.
  • Fixed CSS issues.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].