Tag Info

New answers tagged

0

admin.site.register(Poly, admin.GeoModelAdmin) or admin.site.register(Poly, admin.OSMGeoAdmin) # for openstreet map


1

I would add the constraint in a migration. Or, in something more pretty: a custom field. https://docs.djangoproject.com/en/1.6/howto/custom-model-fields/#writing-a-field-subclass Good luck.


0

Take a look at this tutorial using Leaflet instead of OpenLayers. It worked for me and the docs and plugins are great. The GeoDjango tutorial does fall short for displaying maps.



Top 50 recent answers are included