Skip to content

Commit

Permalink
- minor updates to local_settings.py.geoserver.sample
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Nov 26, 2018
1 parent 4ad081a commit e13a4f7
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions geonode/local_settings.py.geoserver.sample
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ if not SITEURL.endswith('/'):

ALLOWED_HOSTS = [HOSTNAME, 'localhost']

# Define email service on GeoNode
EMAIL_ENABLE = True

if EMAIL_ENABLE:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
DEFAULT_FROM_EMAIL = 'Example.com <no-reply@localhost>'

TIME_ZONE = 'UTC'

# Login and logout urls override
Expand All @@ -63,7 +75,7 @@ ACCOUNT_LOGOUT_REDIRECT_URL = os.getenv('LOGOUT_REDIRECT_URL', SITEURL)
# Backend
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'geonode',
'USER': 'geonode',
'PASSWORD': 'geonode',
Expand Down Expand Up @@ -375,7 +387,7 @@ LOGGING = {
"django": {
"handlers": ["console"], "level": "ERROR", },
"geonode": {
"handlers": ["console"], "level": "DEBUG", },
"handlers": ["console"], "level": "INFO", },
"geonode.qgis_server": {
"handlers": ["console"], "level": "ERROR", },
"gsconfig.catalog": {
Expand Down Expand Up @@ -407,17 +419,6 @@ if MONITORING_ENABLED:
MONITORING_HOST_NAME = os.getenv("MONITORING_HOST_NAME", HOSTNAME)
MONITORING_SERVICE_NAME = 'geonode'

# Define email service on GeoNode
EMAIL_ENABLE = False

if EMAIL_ENABLE:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
DEFAULT_FROM_EMAIL = 'Example.com <no-reply@localhost>'

# Documents Thumbnails
UNOCONV_ENABLE = True
Expand Down

0 comments on commit e13a4f7

Please sign in to comment.