Skip to content

Commit 0fc72d0

Browse files
authored
Update geonode.local_settings to geonode.settings
1 parent dd013cd commit 0fc72d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install/advanced/core/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ In particular the steps to do are:
10061006
cd /opt/geonode
10071007

10081008
# Update the GeoNode ip or hostname
1009-
PYTHONWARNINGS=ignore VIRTUAL_ENV=$VIRTUAL_ENV DJANGO_SETTINGS_MODULE=geonode.local_settings GEONODE_ETC=/opt/geonode/geonode GEOSERVER_DATA_DIR=/opt/data/geoserver_data TOMCAT_SERVICE="service tomcat9" APACHE_SERVICE="service nginx" geonode_updateip -l localhost -p www.example.org
1009+
PYTHONWARNINGS=ignore VIRTUAL_ENV=$VIRTUAL_ENV DJANGO_SETTINGS_MODULE=geonode.settings GEONODE_ETC=/opt/geonode/geonode GEOSERVER_DATA_DIR=/opt/data/geoserver_data TOMCAT_SERVICE="service tomcat9" APACHE_SERVICE="service nginx" geonode_updateip -l localhost -p www.example.org
10101010

10111011
exit
10121012

@@ -1022,14 +1022,14 @@ In particular the steps to do are:
10221022
# Add these to make available. Change user, password and server information to yours
10231023
export DATABASE_URL='postgresql://<postgresqluser>:<postgresqlpass>@localhost:5432/geonode'
10241024

1025-
#Close virtual environmetn and aopen it again to update variables
1025+
# Close virtual environment and aopen it again to update variables
10261026
deactivate
10271027

10281028
workon geonode
10291029
cd /opt/geonode
10301030

10311031
# Update the GeoNode ip or hostname
1032-
DJANGO_SETTINGS_MODULE=geonode.local_settings python manage.py migrate_baseurl --source-address=http://localhost --target-address=http://www.example.org
1032+
DJANGO_SETTINGS_MODULE=geonode.settings python manage.py migrate_baseurl --source-address=http://localhost --target-address=http://www.example.org
10331033

10341034
.. note:: If at the end you get a "bad gateway" error when accessing your geonode site, check uwsgi log with ``sudo tail -f /var/log/geonode.log`` and if theres is an error related with port 5432 check the listening configuration from the postgresql server and allow the incoming traffic from geonode.
10351035

0 commit comments

Comments
 (0)