Skip to content

Commit

Permalink
[Cleanup] cleanup settings and exposing some of them as env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
geosolutions committed May 14, 2019
1 parent 9330b9e commit 5b42dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@

# Make Free-Text Kaywords writable from users or read-only
# - if True only admins can edit free-text kwds from admin dashboard
FREETEXT_KEYWORDS_READONLY = ast.literal_eval(os.environ.get('FREETEXT_KEYWORDS_READONLY', 'True'))
FREETEXT_KEYWORDS_READONLY = ast.literal_eval(os.environ.get('FREETEXT_KEYWORDS_READONLY', 'False'))

# notification settings
NOTIFICATION_ENABLED = ast.literal_eval(os.environ.get('NOTIFICATION_ENABLED', 'True')) or TEST
Expand Down Expand Up @@ -1546,7 +1546,7 @@
'ARGS': []}}

# Each uploaded Layer must be approved by an Admin before becoming visible
ADMIN_MODERATE_UPLOADS = ast.literal_eval(os.environ.get('ADMIN_MODERATE_UPLOADS', 'True'))
ADMIN_MODERATE_UPLOADS = ast.literal_eval(os.environ.get('ADMIN_MODERATE_UPLOADS', 'False'))

# add following lines to your local settings to enable monitoring
MONITORING_CONFIG = None
Expand Down

0 comments on commit 5b42dea

Please sign in to comment.