<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">you're right, I haven't seen this page. Thank you, it's interesting because that's exactly what I want to do, since I also want to add data from a POSTGIS database.<br>When I use the DJANGO_SETTINGS_MODULE = geonode.settings python manage.py updatelayers --help function, it works correctly as shown in website.<br>By cons, when I want to add the data with this command: <span class="gmail-nv">DJANGO_SETTINGS_MODULE</span><span class="gmail-o">=</span>geonode.settings python manage.py updatelayers -w geonode -f Measures<span><span>, it does not work. <span class="gmail-tlid-translation gmail-translation" lang="en"><span title="">I have attached the displayed errors.<span></span></span></span></span></span></div><div dir="ltr"><span><span><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="">Can you please tell me the parameters to configure for this function to work properly? <span class="gmail-tlid-translation gmail-translation" lang="en"><span title="">what is the next step to test what's wrong?<span></span><span><span><span><br></span></span></span></span></span></span></span></span></span></div></div></div></div></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">Le mar. 10 déc. 2019 à 16:02, Francesco Bartoli <<a href="mailto:xbartolone@gmail.com">xbartolone@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div>
<div name="messageBodySection">
<div dir="auto">I guess you didn’t have a look at the documentation <a href="http://docs.geonode.org/en/2.10.x/admin/mgmt_commands/index.html#management-command-updatelayers" target="_blank">http://docs.geonode.org/en/2.10.x/admin/mgmt_commands/index.html#management-command-updatelayers</a> :)</div>
</div>
<div name="messageReplySection">Il 10 dic 2019, 15:58 +0100, Nicolas D. <<a href="mailto:hieloynieve@gmail.com" target="_blank">hieloynieve@gmail.com</a>>, ha scritto:<br>
<blockquote style="margin:5px;padding-left:10px;border-left-color:rgb(26,188,156);border-left-width:thin;border-left-style:solid" type="cite">
<div dir="ltr">
<div dir="ltr"><span lang="en"><span title="">What should I give you as details for "-settings = geonode.settings"?</span></span></div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">Le mar. 10 déc. 2019 à 15:47, Nicolas D. <<a href="mailto:hieloynieve@gmail.com" target="_blank">hieloynieve@gmail.com</a>> a écrit :<br></div>
<blockquote class="gmail_quote" style="margin:5px;padding-left:10px;border-left-color:rgb(230,126,34);border-left-width:thin;border-left-style:solid">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">I uploaded a layer to GeoServer as (<a href="https://geoserver.geo-solutions.it/edu/en/adding_data/add_shp.html" target="_blank">https://geoserver.geo-solutions.it/edu/en/adding_data/add_shp.html</a>)<br>
After, I am able to see the new layer in the GeoServer Layers page<br>
I have made changes to the GeoFence Data Rules by creating new rules for the services (GWC, WMS, *, WPS, WFS)<br>
For import data to geonode, i used the python manage.py updatelayers command for it but it doesn't work.</div>
<div dir="ltr"><br></div>
<div>I'm using a virtual environment. For start geonode I use the command: <span><span><span style="font-family:"Arial",sans-serif;font-size:10pt"><font color="#000000">source env/bin/activate,</font></span> <span lang="en"><span title="">then I set on the folder of the application (cd "folder"), <span lang="en"><span title="">to launch the services: <span>paver start.</span></span></span></span></span></span></span></div>
<div><span><span><span lang="en"><span title=""><span lang="en"><span title=""></span></span></span></span></span>
<ul>
<li><span></span></li>
<li><span>Specs: GeoNode version: 2.8 with mapstore viewer, GeoServer version: 2.14.3, Ubuntu server</span></li>
</ul>
</span></div>
<span><span><span lang="en"><span title=""><span lang="en"><span title=""></span></span></span></span></span></span></div>
<div dir="ltr"><span><span><span lang="en"><span title=""><span lang="en"><span title=""><span></span></span></span></span></span></span>
<div><span><span><span><br></span></span></span></div>
</span></div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">Le mar. 10 déc. 2019 à 15:31, Francesco Bartoli <<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>> a écrit :<br></div>
<blockquote class="gmail_quote" style="margin:5px;padding-left:10px;border-left-color:rgb(52,152,219);border-left-width:thin;border-left-style:solid">
<div>
<div name="messageBodySection">
<div dir="auto">All of them are missing the declaration of the settings to use, are you in a virtual environment or something? Can you try by explicitly declaring it?
<div dir="auto"><br></div>
<div dir="auto">—settings=geonode.settings</div>
</div>
</div>
<div name="messageReplySection">Il 10 dic 2019, 15:27 +0100, Nicolas D. <<a href="mailto:hieloynieve@gmail.com" target="_blank">hieloynieve@gmail.com</a>>, ha scritto:<br>
<blockquote style="margin:5px;padding-left:10px;border-left-color:rgb(211,84,0);border-left-width:thin;border-left-style:solid" type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><span lang="en"><span title="">I tried these different commands:</span></span></div>
<div dir="ltr"><span lang="en"><span title=""><span>- python manage.py updatelayers<br>
- python manage.py updatelayers --skip-geonode-registered -w geonode<br>
- python manage.py updatelayers --skip-geonode-registered<br>
- python manage.py updatelayers -w geonode</span></span></span></div>
<div dir="ltr"><span lang="en"><span title=""><span><span lang="en"><span title="">Each time, it does not work<span><span><span><br></span></span></span></span></span></span></span></span></div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">Le mar. 10 déc. 2019 à 15:09, Francesco Bartoli <<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>> a écrit :<br></div>
<blockquote class="gmail_quote" style="margin:5px;padding-left:10px;border-left-color:rgb(52,73,94);border-left-width:thin;border-left-style:solid">
<div>
<div name="messageBodySection">
<div dir="auto">What’s then the literal command you are trying to run?</div>
</div>
<div name="messageReplySection">Il 10 dic 2019, 15:05 +0100, Nicolas D. <<a href="mailto:hieloynieve@gmail.com" target="_blank">hieloynieve@gmail.com</a>>, ha scritto:<br>
<blockquote style="margin:5px;padding-left:10px;border-left-color:rgb(46,204,113);border-left-width:thin;border-left-style:solid" type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Thank you for your help. Sorry, it's an oversight on my part. I will pay attention next time.</div>
<div><br></div>
<div>I looked at the geonode / settings.py file to check for correct setting parameters.<span></span></div>
<div><span>The OGC dictionary parameters are as follows</span></div>
<div><span><br></span></div>
<div><span>OGC_SERVER = {<br>
'default': {<br>
'BACKEND': 'geonode.geoserver',<br>
'LOCATION': GEOSERVER_LOCATION,<br>
'WEB_UI_LOCATION': GEOSERVER_WEB_UI_LOCATION,<br>
'LOGIN_ENDPOINT': 'j_spring_oauth2_geonode_login',<br>
'LOGOUT_ENDPOINT': 'j_spring_oauth2_geonode_logout',<br>
# PUBLIC_LOCATION needs to be kept like this because in dev mode<br>
# the proxy won't work and the integration tests will fail<br>
# the entire block has to be overridden in the local_settings<br>
'PUBLIC_LOCATION': GEOSERVER_PUBLIC_LOCATION,<br>
'USER': OGC_SERVER_DEFAULT_USER,<br>
'PASSWORD': OGC_SERVER_DEFAULT_PASSWORD,<br>
'MAPFISH_PRINT_ENABLED': True,<br>
'PRINT_NG_ENABLED': True,<br>
'GEONODE_SECURITY_ENABLED': True,<br>
'GEOFENCE_SECURITY_ENABLED': GEOFENCE_SECURITY_ENABLED,<br>
'GEOFENCE_URL': os.getenv('GEOFENCE_URL', 'internal:/'),<br>
'WMST_ENABLED': False,<br>
'BACKEND_WRITE_ENABLED': True,<br>
'WPS_ENABLED': True,<br>
'LOG_FILE': '%s/geoserver/data/logs/geoserver.log'<br>
% os.path.abspath(os.path.join(PROJECT_ROOT, os.pardir)),<br>
# Set to name of database in DATABASES dictionary to enable<br>
# 'datastore',<br>
'DATASTORE': os.getenv('DEFAULT_BACKEND_DATASTORE', ''),<br>
'TIMEOUT': int(os.getenv('OGC_REQUEST_TIMEOUT', '5')),<br>
'MAX_RETRIES': int(os.getenv('OGC_REQUEST_MAX_RETRIES', '5')),<br>
'BACKOFF_FACTOR': float(os.getenv('OGC_REQUEST_BACKOFF_FACTOR', '0.3')),<br>
'POOL_MAXSIZE': int(os.getenv('OGC_REQUEST_POOL_MAXSIZE', '10')),<br>
'POOL_CONNECTIONS': int(os.getenv('OGC_REQUEST_POOL_CONNECTIONS', '10')),<br>
}<br>
}</span></div>
<span></span></div>
<div dir="ltr"><span><span><span><span><span><span></span></span></span></span></span>
<div><span><span lang="en"><span title="">Are the variables correct?</span><br>
<span title="">Should I check other settings in the file for this to work?</span></span></span></div>
<div><span lang="en"><span title="">Nicolas<span><br></span></span></span></div>
</span></div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">Le mar. 10 déc. 2019 à 14:31, Francesco Bartoli <<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>> a écrit :<br></div>
<blockquote class="gmail_quote" style="margin:5px;padding-left:10px;border-left-color:rgb(155,89,182);border-left-width:thin;border-left-style:solid">
<div>
<div name="messageBodySection">
<div dir="auto">Please look at the documentation <a href="http://docs.geonode.org/en/2.10.x/basic/index.html#geonode-settings" target="_blank">http://docs.geonode.org/en/2.10.x/basic/index.html#geonode-settings</a>
<div dir="auto"><br></div>
<div dir="auto">And also, please remember to reply to the list so the discussion can be useful for others</div>
</div>
</div>
<div name="messageReplySection">Il 10 dic 2019, 14:27 +0100, Nicolas D. <<a href="mailto:hieloynieve@gmail.com" target="_blank">hieloynieve@gmail.com</a>>, ha scritto:<br>
<blockquote style="margin:5px;padding-left:10px;border-left-color:rgb(231,76,60);border-left-width:thin;border-left-style:solid" type="cite">
<div dir="ltr">
<div dir="ltr">
<div><span lang="en"><span title="">Hi,</span></span></div>
<div dir="ltr"><span lang="en"><span title="">Thank you for your reply.</span> <span title="">Where can I find the settings.py file?</span> <span title="">What settings do I need to configure <span lang="en"><span title="">or check <span>for this to work properly?</span><br>
<span title="">Regards,</span></span></span></span></span></div>
<div><span lang="en"><span title=""><span lang="en"><span title="">Nicolas<span><br></span></span></span></span></span></div>
</div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">Le mar. 10 déc. 2019 à 13:54, Francesco Bartoli <<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>> a écrit :<br></div>
<blockquote class="gmail_quote" style="margin:5px;padding-left:10px;border-left-color:rgb(26,188,156);border-left-width:thin;border-left-style:solid">
<div>
<div name="messageBodySection">
<div dir="auto">Hi,
<div dir="auto"><br></div>
<div dir="auto">apparently it doesn’t accomplish to access GeoServer properly so the question is how does your settings.py look like?</div>
</div>
</div>
<div name="messageSignatureSection"><br>
<div dir="auto">Francesco</div>
</div>
<div name="messageReplySection">Il 10 dic 2019, 11:15 +0100, Nicolas D. <<a href="mailto:hieloynieve@gmail.com" target="_blank">hieloynieve@gmail.com</a>>, ha scritto:<br>
<blockquote style="margin:5px;padding-left:10px;border-left-color:rgb(230,126,34);border-left-width:thin;border-left-style:solid" type="cite">
<div dir="ltr">
<div dir="ltr">Hi,<br>
I tried using the updatelayers function to Update the GeoNode application with the GeoServer data. I used python manage.py updatelayers, but I do not understand why it does not work. I have attached the errors displayed. Can you please help me to find out what's wrong? Thank you in advance, truthfully yours,<span></span></div>
</div>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br></blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote></div>