[GeoNode-users] Geonode Installation migrate and collectstatic

Julierme Pinheiro juliermeopensourcedeveloper at gmail.com
Mon May 7 12:06:47 PDT 2018


Hi Simone Dalmasso and Paolo Corti,

It was my bad. Line 348 was causing the problem and it is found in
settings.py and not local_settings.py.

I apologize for that.

Thank you for your time and patience

Kind Regards

Julierme



2018-05-07 13:03 GMT-03:00 Julierme Pinheiro <
juliermeopensourcedeveloper at gmail.com>:

> Hi Simone Dalmasso and Paolo Corti,
>
> I forgot to mention that I am following this tutorial (
> http://docs.geonode.org/en/master/tutorials/install_and_adm
> in/geonode_install/setup_configure_httpd.html). And the incoherence I
> found in the local_settings.py configuration is in OGC_SERVER settings: <
> 'LOG_FILE': '%s/geoserver/data/logs/geoserver.log' % os.path.abspath(os.
> path.join(*PROJECT_ROOT*, os.pardir)),>
>
> The *PROJECT_ROOT* was changed to *LOCAL_ROOT*.
>
> However I still having the same issue while running python manage.py
> migrate and python manage.py collectstatic
>
> Traceback (most recent call last):
>   File "manage.py", line 31, in <module>
>     execute_from_command_line(sys.argv)
>   File "/root/Envs/geonode/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 354, in execute_from_command_line
>     utility.execute()
>   File "/root/Envs/geonode/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 328, in execute
>     django.setup()
>   File "/root/Envs/geonode/local/lib/python2.7/site-packages/django/__init__.py",
> line 18, in setup
>     apps.populate(settings.INSTALLED_APPS)
>   File "/root/Envs/geonode/local/lib/python2.7/site-packages/django/apps/registry.py",
> line 89, in populate
>     "duplicates: %s" % app_config.label)
> django.core.exceptions.ImproperlyConfigured: Application labels aren't
> unique, duplicates: ows_api
>
> Lastly, the configuration below is in the end of my local_settings lines
> 559 and 562 and I am not sure if the INSTALLED_APPS in line 559 is related
> to REACT based Client (Line 322) or to MapStore2 based Client (Line 331).
>
> INSTALLED_APPS = INSTALLED_APPS + ('my_geonode',)
> TEMPLATES[0]['DIRS'].insert(0, os.path.join(LOCAL_ROOT, "templates"))
>
>
>
> Thank you for your time in advance.
>
> Kind regards
>
> Julierme
>
>
>
>
>
>
>
>
> 2018-05-04 17:05 GMT-03:00 Julierme Pinheiro <juliermeopensourcedeveloper@
> gmail.com>:
>
>> Hi Simone Dalmasso and Paolo Corti
>>
>> Yes, I think my issue could be related to the INSTALLED_APPS variable.
>> Though I do not have line 348 <INSTALLED_APPS += ('
>> geonode.contrib.ows_api',)> in the local_settings.py.
>>
>> Passing a magnifying glass in the local_settings.py, I found the
>> following INSTALLED_APPS:
>>
>> *Line 99* < INSTALLED_APPS += (NOTIFICATIONS_MODULE, )>
>>
>> NOTIFICATION_ENABLED is set to *FALSE, *so I think the IF is not executed
>>
>>
>> *Line 322* < # INSTALLED_APPS += ('geonode-client', )>
>>
>> INSTALLED_APPS is commented out.
>>
>>
>> *Line 331* <# INSTALLED_APPS += ('geonode_mapstore_client', )>
>>
>> INSTALLED_APPS is commented out.
>>
>>
>> *Line 412* <# if 'geonode.geoserver' in INSTALLED_APPS:>
>>
>> INSTALLED_APPS is commented out.
>>
>>
>> *Line 517* < if 'geonode.contrib.monitoring' not in INSTALLED_APPS:>
>>
>> MONITORING_ENABLED is set to *TRUE in line 516, *so I think the IF is
>> executed in *line 517* and *line 518* is executed too.
>>
>> *Line 559* <INSTALLED_APPS = INSTALLED_APPS + ('my_geonode',)>
>>
>>
>> I got very confused in this local_settings file. I wonder if I can set *line
>> 559* before *line 517 *in order to fix the problem. Could you give me a
>> clue on what is going wrong, please? I am also sending the
>> local_settings.py in attached.
>>
>> Thank you for your time and patience in advance.
>>
>> I appreciated it
>>
>> Julierme
>>
>>
>>
>>
>>
>>
>>
>>
>> 2018-05-04 13:05 GMT-03:00 Paolo Corti <pcorti at gmail.com>:
>>
>>> Hi Julierme
>>>
>>> It looks like you are using the (recommended approach) of using a geonode
>>> project.
>>>
>>> This is caused by this line in geonode-project:
>>> https://github.com/GeoNode/geonode-project/blob/2.8.0/projec
>>> t_name/settings.py#L348
>>>
>>> we will need to fix this, meanwhile you can remove that line in your
>>> instance
>>> best
>>> Paolo
>>> On Fri, May 4, 2018 at 4:52 AM Simone Dalmasso <
>>> simone.dalmasso at gmail.com>
>>> wrote:
>>>
>>> > Hi, check if in your settings.INSTALLED_APPS you have the
>>> 'geonode.contrib.ows_api' declared just once.
>>>
>>> > Hope this helps
>>>
>>> > 2018-05-03 22:20 GMT+02:00 Julierme Pinheiro <
>>> juliermeopensourcedeveloper at gmail.com>:
>>>
>>> >> Hi all,
>>>
>>> >> I am installing geonode 2.8.0 in an Ubuntu 16.04 machine following the
>>> installation guide in here. And I wonder if anybody has faced any issue
>>> with $ python manage.py migrate and $ python manage.py collectstatic as I
>>> have in:
>>>
>>> >> $ python manage.py migrate
>>>
>>> >> Traceback (most recent call last):
>>> >>    File "manage.py", line 31, in <module>
>>> >>      execute_from_command_line(sys.argv)
>>> >>    File
>>> "/root/Envs/geonode/local/lib/python2.7/site-packages/django
>>> /core/management/__init__.py",
>>> line 354, in execute_from_command_line
>>> >>      utility.execute()
>>> >>    File
>>> "/root/Envs/geonode/local/lib/python2.7/site-packages/django
>>> /core/management/__init__.py",
>>> line 328, in execute
>>> >>      django.setup()
>>> >>    File
>>> "/root/Envs/geonode/local/lib/python2.7/site-packages/django
>>> /__init__.py",
>>> line 18, in setup
>>> >>      apps.populate(settings.INSTALLED_APPS)
>>> >>    File
>>> "/root/Envs/geonode/local/lib/python2.7/site-packages/django
>>> /apps/registry.py",
>>> line 89, in populate
>>> >>      "duplicates: %s" % app_config.label)
>>> >> django.core.exceptions.ImproperlyConfigured: Application labels
>>> aren't
>>> unique, duplicates: ows_api
>>>
>>>
>>> >> $ python manage.py collectstatic
>>>
>>> >> Traceback (most recent call last):
>>> >>    File "manage.py", line 31, in <module>
>>> >>      execute_from_command_line(sys.argv)
>>> >>    File
>>> "/root/Envs/geonode/local/lib/python2.7/site-packages/django
>>> /core/management/__init__.py",
>>> line 354, in execute_from_command_line
>>> >>      utility.execute()
>>> >>    File
>>> "/root/Envs/geonode/local/lib/python2.7/site-packages/django
>>> /core/management/__init__.py",
>>> line 328, in execute
>>> >>      django.setup()
>>> >>    File
>>> "/root/Envs/geonode/local/lib/python2.7/site-packages/django
>>> /__init__.py",
>>> line 18, in setup
>>> >>      apps.populate(settings.INSTALLED_APPS)
>>> >>    File
>>> "/root/Envs/geonode/local/lib/python2.7/site-packages/django
>>> /apps/registry.py",
>>> line 89, in populate
>>> >>      "duplicates: %s" % app_config.label)
>>> >> django.core.exceptions.ImproperlyConfigured: Application labels
>>> aren't
>>> unique, duplicates: ows_api
>>>
>>>
>>>
>>> >> Thank you very much for your time and help in advance.
>>>
>>> >> Kind regards
>>>
>>> >> Julierme
>>>
>>> >> _______________________________________________
>>> >> geonode-users mailing list
>>> >> geonode-users at lists.osgeo.org
>>> >> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>
>>>
>>>
>>>
>>> > --
>>> > Simone
>>> > _______________________________________________
>>> > geonode-users mailing list
>>> > geonode-users at lists.osgeo.org
>>> > https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>
>>>
>>>
>>> --
>>> Paolo Corti
>>> Geospatial software developer
>>> web: http://www.paolocorti.net
>>> twitter: @capooti
>>> skype: capooti
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180507/4a0bb34b/attachment.html>


More information about the geonode-users mailing list