mirror of
https://github.com/HaitiData/haitidata.git
synced 2026-11-03 13:26:31 +00:00
Merge pull request #38 from dimasciput/fix_upload
Fix upload shapefile layers to postgis
This commit is contained in:
commit
0067a4b712
2 files changed
+12
-3
No files matched your search
@@ -20,6 +20,15 @@ DATABASES = {
|
||||
'HOST': 'db',
|
||||
'PORT': 5432,
|
||||
'TEST_NAME': 'unittests',
|
||||
},
|
||||
# vector datastore for uploads
|
||||
'datastore': {
|
||||
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
||||
'NAME': 'geonode_data',
|
||||
'USER': 'docker',
|
||||
'PASSWORD': 'docker',
|
||||
'HOST': 'db',
|
||||
'PORT': 5432,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,9 +26,9 @@ DATABASES = {
|
||||
'datastore': {
|
||||
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
||||
'NAME': 'geonode_data',
|
||||
'USER': 'geonode',
|
||||
'PASSWORD': 'geonode',
|
||||
'HOST': 'localhost',
|
||||
'USER': os.environ['DATABASE_USERNAME'],
|
||||
'PASSWORD': os.environ['DATABASE_PASSWORD'],
|
||||
'HOST': os.environ['DATABASE_HOST'],
|
||||
'PORT': 5432,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user