Skip to content

Commit

Permalink
Fixes a problem with createlayer app
Browse files Browse the repository at this point in the history
  • Loading branch information
capooti committed May 31, 2018
1 parent b590fa7 commit 2b5e6ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geonode/contrib/createlayer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ def get_or_create_datastore(cat, workspace=None, charset="UTF-8"):
"""

# TODO refactor this and geoserver.helpers._create_db_featurestore
dsname = ogc_server_settings.DATASTORE
#dsname = ogc_server_settings.DATASTORE
dsname = ogc_server_settings.datastore_db['NAME']
if not ogc_server_settings.DATASTORE:
msg = ("To use the createlayer application you must set ogc_server_settings.datastore_db['ENGINE']"
" to 'django.contrib.gis.db.backends.postgis")
Expand Down

0 comments on commit 2b5e6ca

Please sign in to comment.