[GeoNode-users] Geonode Installation migrate and collectstatic

Julierme Pinheiro juliermeopensourcedeveloper at gmail.com
Fri May 4 13:05:49 PDT 2018


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/
> project_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/20180504/79e3b238/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: local_settings.py
Type: text/x-python
Size: 18493 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180504/79e3b238/attachment-0001.py>


More information about the geonode-users mailing list