Skip to main content

Project Open Street Map management

Project description

Project Open Street Map management


The full documentation is at


Install django-osm:

pip install django-osm

Add it to your INSTALLED_APPS:



    'osm': {
        'ENGINE': 'django.contrib.gis.db.backends.postgis',
        'HOST': 'localhost',
        'NAME': 'geodjango',
OSM_REPLICS = ['osm']

If there is OSM database replication, then add the connection parameters to us in the list of databases:

    'osm_replica1': {
        'ENGINE': 'django.contrib.gis.db.backends.postgis',
        'HOST': 'localhost',
        'NAME': 'geodjango',


And complete the list of replicas OSM_REPLICS:

OSM_REPLICS = ['osm', 'osm_replica1']

Add django-osm’s URL patterns:

urlpatterns = [
    path('osm/', include('osm.urls', namespace='osm')),

Add DRF settings:

     "DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",),
     'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
     'PAGE_SIZE': 25


  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Development commands

pip install -r requirements_dev.txt
invoke -l


Tools used in rendering this package:


0.1.0 (2021-01-16)

  • First release on PyPI.

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-osm, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_osm-0.1.0-py2.py3-none-any.whl (15.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-osm-0.1.0.tar.gz (14.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page