change openlayers url, add debug toolbar for some debug foo
This commit is contained in:
parent
ff02d90143
commit
f30e5fbd45
|
@ -15,11 +15,12 @@ class FeatureAdmin(admin.GeoModelAdmin):
|
||||||
list_filter = ('feature_type',)
|
list_filter = ('feature_type',)
|
||||||
inlines = [FeatureNamesInline, FeatureRelationInline]
|
inlines = [FeatureNamesInline, FeatureRelationInline]
|
||||||
list_per_page = 500
|
list_per_page = 500
|
||||||
|
openlayers_url = 'http://openlayers.org/dev/OpenLayers.js'
|
||||||
# map_template = 'gis/admin/osm.html'
|
# map_template = 'gis/admin/osm.html'
|
||||||
# default_lon = 72.855211097628413
|
# default_lon = 72.855211097628413
|
||||||
# default_lat = 19.415775291486027
|
# default_lat = 19.415775291486027
|
||||||
# default_zoom = 4
|
# 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(Feature, FeatureAdmin)
|
||||||
admin.site.register(TimeFrame)
|
admin.site.register(TimeFrame)
|
||||||
|
|
|
@ -8,7 +8,7 @@ DATA_DIR = '/home/sanj/c/gazetteer/data'
|
||||||
ADMINS = (
|
ADMINS = (
|
||||||
# ('Your Name', 'your_email@domain.com'),
|
# ('Your Name', 'your_email@domain.com'),
|
||||||
)
|
)
|
||||||
|
INTERNAL_IPS = ('127.0.0.1',)
|
||||||
MANAGERS = ADMINS
|
MANAGERS = ADMINS
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
|
@ -75,6 +75,7 @@ MIDDLEWARE_CLASSES = (
|
||||||
'django.middleware.csrf.CsrfViewMiddleware',
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
'django.contrib.messages.middleware.MessageMiddleware',
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
|
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||||
)
|
)
|
||||||
|
|
||||||
ROOT_URLCONF = 'gazetteer.urls'
|
ROOT_URLCONF = 'gazetteer.urls'
|
||||||
|
@ -94,6 +95,7 @@ INSTALLED_APPS = (
|
||||||
'django.contrib.gis',
|
'django.contrib.gis',
|
||||||
'places',
|
'places',
|
||||||
'django_extensions',
|
'django_extensions',
|
||||||
|
'debug_toolbar',
|
||||||
# Uncomment the next line to enable the admin:
|
# Uncomment the next line to enable the admin:
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
# Uncomment the next line to enable admin documentation:
|
# Uncomment the next line to enable admin documentation:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user