2008-08-06 02:13:06 +08:00
|
|
|
# Getting the normal admin routines, classes, and `site` instance.
|
2008-10-27 02:01:15 +08:00
|
|
|
from django.contrib.admin import autodiscover, site, AdminSite, ModelAdmin, StackedInline, TabularInline, HORIZONTAL, VERTICAL
|
2008-08-06 02:13:06 +08:00
|
|
|
|
|
|
|
# Geographic admin options classes and widgets.
|
|
|
|
from django.contrib.gis.admin.options import GeoModelAdmin
|
|
|
|
from django.contrib.gis.admin.widgets import OpenLayersWidget
|
|
|
|
|
|
|
|
try:
|
|
|
|
from django.contrib.gis.admin.options import OSMGeoAdmin
|
|
|
|
HAS_OSM = True
|
|
|
|
except ImportError:
|
|
|
|
HAS_OSM = False
|