[GeoNode-users] Multi-Tenancy: how to start

Eugenio Trumpy frippe12573 at hotmail.com
Mon Dec 19 00:20:28 PST 2016

Hi Simone,

and thank you for your answer.

Sorry for my trivial question:

in my setting.py I have already geonode.contrib.geosites


    # GeoNode Contrib Apps



    # Boostrap admin theme
    # 'django_admin_bootstrapped.bootstrap3',
    # 'django_admin_bootstrapped',

    # Apps bundled with Django

    # Third party apps

    # Utility
    # 'haystack',

....and others...

Should I insert geonode.contrib.geosites somewhere in local_setting? or it's already ok as it? or copy geonode.contrib.geosites in settings.py under INSTALLED_APPS?

Sorry again for this banal question...


Da: Simone Dalmasso <simone.dalmasso at gmail.com>
Inviato: lunedì 19 dicembre 2016 09.04
A: Eugenio Trumpy
Cc: geonode-users at lists.osgeo.org
Oggetto: Re: Multi-Tenancy: how to start

Ciao Eugenio,

sorry for being so late in the response.

You have to add 'geonode.contrib.geosites' to your INSTALLED_APPS in order to get the command.

In case you get errors in running that command, you can always 'make' a geosite by yourself by copying the folder 'site_template' and changing it's name and internal parameters and then register the new Site in the admin panel. You can follow the utils.py add_site function and replicate the needed steps (some of them are only for production).
Take also some time to see how the pre and post settings work.

Hope this helps

2016-12-19 8:55 GMT+01:00 Eugenio Trumpy <frippe12573 at hotmail.com<mailto:frippe12573 at hotmail.com>>:

Hi everyone,

regarding the multi-tenancy setting up and in particular the installation of new site since the command:

python manage.py addsite sitename sitedomain

return me:

Unknown command: 'addsite'
Type 'manage.py help' for usage.

Do you know way? Have I 'activate' in some way the multi-tenancy before? or it is ready to use?

If it is ready to use, why 'addsite' is an unknown command?

I launched the command from the main geonode directory, am I right?

As I wrote in the previous email in my installation I have only manage.py file in
/geonode directory.

I'm testing on on ubuntu 14.04 and geonode is at version 2.4.dev20151029170512.
I installed geonode as custom installation (not by apt-get).


Da: Eugenio Trumpy <frippe12573 at hotmail.com<mailto:frippe12573 at hotmail.com>>
Inviato: venerdì 16 dicembre 2016 15.04
A: geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
Oggetto: Multi-Tenancy: how to start

Hi all,

as pointed in the email object I want to try the geonode multi-tenancy capabilities.

I started of course from the documentation [1] and [2], but a need some hints to start.

I have already a running geonode instance. Do you think I should start from

a clean geonode installation or I can arrange the running one?

Is there somewhere a set of commands to setup the geosite 1, geosite 2, ...

I was looking into geosites folder, as suggested in [2], but I don't see neither manage.py nor manage_all.py files.

I tried python manage.py addsite geosite1 geosite1domain

but I got Unknown command: 'addsite'

Am I missing something?

After that: How can I sort out the already stored layers?

Thank you very much for hints and for the patience of this stupid questions,


[1] https://geonode.readthedocs.io/en/2.0/tutorials/admin/multi-tenancy.html

[2] https://github.com/GeoNode/geonode/tree/master/geonode/contrib/geosites

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20161219/562343c5/attachment.html>

More information about the geonode-users mailing list