change openlayers url, add debug toolbar for some debug foo

This commit is contained in:
Sanj 2011-08-21 03:36:06 +05:30
parent ff02d90143
commit f30e5fbd45
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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: