Skip to content

Commit

Permalink
[Settings] Make client hooksets auto-configurable via env GEONODE_CLI…
Browse files Browse the repository at this point in the history
…ENT_LAYER_PREVIEW_LIBRARY
  • Loading branch information
afabiani committed Jun 6, 2019
1 parent 8f3b065 commit 77b041e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,16 +1099,6 @@
API_INCLUDE_REGIONS_COUNT = ast.literal_eval(
os.getenv('API_INCLUDE_REGIONS_COUNT', 'False'))

if not DEBUG_STATIC:
# if not DEBUG_STATIC, use minified css and js
LEAFLET_CONFIG['PLUGINS'] = {
'leaflet-plugins': {
'js': 'lib/js/leaflet-plugins.min.js',
'css': 'lib/css/leaflet-plugins.min.css',
'auto-include': True,
}
}

# option to enable/disable resource unpublishing for administrators
RESOURCE_PUBLISHING = ast.literal_eval(os.getenv('RESOURCE_PUBLISHING', 'False'))

Expand Down Expand Up @@ -1351,6 +1341,16 @@
'RESET_VIEW': False
}

if not DEBUG_STATIC:
# if not DEBUG_STATIC, use minified css and js
LEAFLET_CONFIG['PLUGINS'] = {
'leaflet-plugins': {
'js': 'lib/js/leaflet-plugins.min.js',
'css': 'lib/css/leaflet-plugins.min.css',
'auto-include': True,
}
}

CORS_ORIGIN_WHITELIST = (
HOSTNAME
)
Expand Down

0 comments on commit 77b041e

Please sign in to comment.