From f30e5fbd45e6e4d3d81b1699087c65a597533922 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 21 Aug 2011 03:36:06 +0530 Subject: [PATCH] change openlayers url, add debug toolbar for some debug foo --- gazetteer/places/admin.py | 3 ++- gazetteer/settings.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gazetteer/places/admin.py b/gazetteer/places/admin.py index 6857644..e8ec7c8 100644 --- a/gazetteer/places/admin.py +++ b/gazetteer/places/admin.py @@ -15,11 +15,12 @@ class FeatureAdmin(admin.GeoModelAdmin): list_filter = ('feature_type',) inlines = [FeatureNamesInline, FeatureRelationInline] list_per_page = 500 + openlayers_url = 'http://openlayers.org/dev/OpenLayers.js' # map_template = 'gis/admin/osm.html' # default_lon = 72.855211097628413 # default_lat = 19.415775291486027 # default_zoom = 4 - extra_js = ['http://openlayers.org/dev/OpenLayers.js', 'http://openstreetmap.org/openlayers/OpenStreetMap.js'] +# extra_js = ['http://openstreetmap.org/openlayers/OpenStreetMap.js'] admin.site.register(Feature, FeatureAdmin) admin.site.register(TimeFrame) diff --git a/gazetteer/settings.py b/gazetteer/settings.py index 6c3029e..c228104 100644 --- a/gazetteer/settings.py +++ b/gazetteer/settings.py @@ -8,7 +8,7 @@ DATA_DIR = '/home/sanj/c/gazetteer/data' ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) - +INTERNAL_IPS = ('127.0.0.1',) MANAGERS = ADMINS DATABASES = { @@ -75,6 +75,7 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', + 'debug_toolbar.middleware.DebugToolbarMiddleware', ) ROOT_URLCONF = 'gazetteer.urls' @@ -94,6 +95,7 @@ INSTALLED_APPS = ( 'django.contrib.gis', 'places', 'django_extensions', + 'debug_toolbar', # Uncomment the next line to enable the admin: 'django.contrib.admin', # Uncomment the next line to enable admin documentation: