[GeoNode-users] GeoNode-Project Installation

Julierme Pinheiro juliermeopensourcedeveloper at gmail.com
Thu Nov 22 13:06:53 PST 2018


... Also just adding some more information: this issue does not come out
with settings in my_geonode/wsgi.py -->
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_geonode.settings").

Kind regards

Julierme

On Thu, Nov 22, 2018 at 7:04 PM Julierme Pinheiro <
juliermeopensourcedeveloper at gmail.com> wrote:

> Dear all,
>
> Trying to find what is going on with GeoNode-Project at 2.8 docker
> installation. Just for further information, I got to solve the SITEURL
> issue by placing it after SITE_HOST_NAME and SITE_HOST_PORT in
> local_settings.py at 2.8. But now, I am getting stuck in a database issue as
> shown by docker-compose logs -f:
> celery4my_geonode | django.db.utils.OperationalError: could not connect to
> server: Connection refused
> celery4my_geonode |     Is the server running on host "localhost"
> (127.0.0.1) and accepting
> celery4my_geonode |     TCP/IP connections on port 5432?
> celery4my_geonode | could not connect to server: Network is unreachable
> celery4my_geonode |     Is the server running on host "localhost" (::1)
> and accepting
> celery4my_geonode |     TCP/IP connections on port 5432?
>
> Any help on that will be very appreciated.
>
> Kind regards
>
> Julierme
>
>
>
>
>
>
> On Thu, Nov 22, 2018 at 5:03 PM Julierme Pinheiro <
> juliermeopensourcedeveloper at gmail.com> wrote:
>
>> Hi Toni,
>>
>> Thank you very much for the highlights. I got it.
>>
>> I appreciated  your time.
>>
>> Regards
>>
>> Julierme
>>
>> On Thu, Nov 22, 2018 at 4:59 PM Julierme Pinheiro <
>> juliermeopensourcedeveloper at gmail.com> wrote:
>>
>>> Regarding the previous e-mail:
>>>
>>> I realized that in local_settings.py at 2.8 --> DATABASES: { 'HOST':
>>> 'localhost' in, but local_settings.py at 2.7 --> DATABASES: { 'HOST': 'db'
>>>
>>> Regards
>>>
>>> Julierme
>>>
>>>
>>> On Thu, Nov 22, 2018 at 4:47 PM Julierme Pinheiro <
>>> juliermeopensourcedeveloper at gmail.com> wrote:
>>>
>>>> Hi Toni,
>>>>
>>>> Thank you very much for the hints. I see in
>>>> https://github.com/GeoNode/geonode/commits/master/geonode/local_settings.py.geoserver.sample
>>>> that there is a lot of work and contributions behind the whole project. You
>>>> all deserve many rounds of beer in the next Summit. I hope to be there to
>>>> celebrate with you all.
>>>>
>>>> I noticed those differences I mentioned before, mainly settings.py at 2.7
>>>> has more configuration than settings.py at 2.8. And I am not sure about
>>>> whether SITEURL can be declared before SITE_HOST_NAME and SITE_HOST_PORT (I
>>>> can do a test changing SITEURL location in the file) in local_settings.py.
>>>> My first guess is not because python interprets the file from top to the
>>>> bottom.
>>>> One thing to consider is: If we follow the guide
>>>> <https://github.com/GeoNode/geonode-project/tree/2.8> the way it is,
>>>> using local_settings in wsgi.py. The GeoNode-Project at 2.8 docker
>>>> installation will fail.
>>>>
>>>> I appreciated your time, Toni.
>>>>
>>>> Kind regards
>>>>
>>>> Julierme
>>>>
>>>>
>>>>
>>>> On Thu, Nov 22, 2018 at 4:09 PM Toni Schönbuchner <
>>>> toni.schoenbuchner at csgis.de> wrote:
>>>>
>>>>> Hi Julierme,
>>>>>
>>>>> as a little hint. With github you can view the history of each file.
>>>>>
>>>>> For example local_settings:
>>>>>
>>>>> https://github.com/GeoNode/geonode/commits/master/geonode/local_settings.py.geoserver.sample
>>>>>
>>>>> The commit message often explains why the file was updated.
>>>>> When you click the button on the right hand side showing a specific
>>>>> commit hash
>>>>> you get a nice diff view what has changed. With this it should be easy
>>>>> to
>>>>> see what changed form 2.7 to 2.8 etc.
>>>>>
>>>>> Do you notice something?
>>>>> – Exactly! Most of the time it´s Allesio who changed the file.
>>>>> That´s why we should spend him not only one round of beer
>>>>> at the next summit :))
>>>>>
>>>>> Hope this makes your work a bit easier
>>>>> Cheers,
>>>>>
>>>>> Toni
>>>>>
>>>>> Am 22.11.2018 um 18:10 schrieb geonode-users-request at lists.osgeo.org:
>>>>>
>>>>> Message: 2
>>>>> Date: Thu, 22 Nov 2018 15:10:40 -0200
>>>>> From: Julierme Pinheiro <juliermeopensourcedeveloper at gmail.com>
>>>>> To: handy at galerigis.com
>>>>> Cc: geonode-users <geonode-users at lists.osgeo.org>, Paolo Corti
>>>>> <pcorti at gmail.com>
>>>>> Subject: Re: [GeoNode-users] GeoNode-Project Installation
>>>>> Message-ID:
>>>>> <CAKTKyJKinYoxwh4KV4VvqB2CaVGP407h8_y-cRDc1WLQVRm7+A at mail.gmail.com>
>>>>> Content-Type: text/plain; charset="utf-8"
>>>>>
>>>>> Dear all,
>>>>>
>>>>> Ok. After many tests, I finally got GeoNode-Project installed using
>>>>> "local_settings" in my_geonode/wsgi.py -->
>>>>> os.environ.setdefault("DJANGO_SETTINGS_MODULE",
>>>>> "my_geonode.local_settings").
>>>>>
>>>>> I have an old instance of GeoNode-Project at 2.7 running in a VM. I
>>>>> compared
>>>>> settings and local_settings files of GeoNode-Project at 2.7 and
>>>>> GeoNode-Project at 2.8. Here are some differences found:
>>>>>
>>>>> Regarding local_settings.py
>>>>>
>>>>> In GeoNode-Project at 2.8 SITEURL is declared before SITE_HOST_NAME and
>>>>> SITE_HOST_PORT. But SITEURL depends on both variables.
>>>>>
>>>>> In contrast, GeoNode-Project at 2.7, its local_settings.py sets SITEURL
>>>>> right
>>>>> after SITE_HOST_PORT and SITE_HOST_NAME.  It seems the correct
>>>>> settings.
>>>>>
>>>>> Regarding settings.py
>>>>>
>>>>> What I realized is that settings.py for GeoNode-Project at 2.8 is
>>>>> smaller than
>>>>> GeoNode-Project at 2.7. For instance I can find configuration for #
>>>>> prevent
>>>>> signing up by default # in Geonode-Project at 2.7 settings.py , but I
>>>>> can not
>>>>> find the same config in GeoNode-Project at 2.8 settings.p.
>>>>>
>>>>> What I did: I cloned geonode-project and my_geonode folders for
>>>>> GeoNode-Project at 2.8 and I used settings.py at 2.7 and
>>>>> local_settings.py at 2.7
>>>>> instead of
>>>>> settings.py at 2.8 and local_settings.py at 2.8. The response is:
>>>>> GeoNode-Project at 2.8 is up and running via Docker installation.
>>>>>
>>>>> Find the files settings.py and local_settings.py for
>>>>> GeoNode-Project at 2.7
>>>>> and GeoNode-Project at 2.8 in attached.
>>>>>
>>>>> Kind regards
>>>>>
>>>>> Julierme
>>>>>
>>>>>
>>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181122/c0e3ce6b/attachment-0001.html>


More information about the geonode-users mailing list