Skip to main content

Simple widgets for GeoDjango

Project description

django-geowidgets

https://img.shields.io/pypi/v/django-geowidgets.svg https://img.shields.io/travis/openmeteo/django-geowidgets.svg Coverage Updates

Currently this only contains LatLonWidget and LatLonField. LatLonWidget is a simple MultiWidget showing latitude and longitude. LatLonField is a form field that by default uses LatLonWidget.

from django import forms

from geowidgets import LatLonField

from . import models


class MyForm(forms.ModelForm):
    location = LatLonField(
        label="Co-ordinates",
        help_text="Longitude and latitude in decimal degrees",
    )

    class Meta:
        model = models.MyModel

django-geowidgets is free software, available under the GNU General Public License v3. See the LICENCE file for details.

History

0.1.0 (2019-08-13)

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-geowidgets, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_geowidgets-0.1.0-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-geowidgets-0.1.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page