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

Simone Dalmasso simone.dalmasso at gmail.com
Mon Dec 19 00:04:28 PST 2016


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>:

> 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).
>
> Thanks
>
> Eugenio
> ------------------------------
> *Da:* Eugenio Trumpy <frippe12573 at hotmail.com>
> *Inviato:* venerdì 16 dicembre 2016 15.04
> *A:* 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,
>
>
> Eugenio
>
>
> [1] https://geonode.readthedocs.io/en/2.0/tutorials/admin/
> multi-tenancy.html
>
> [2] https://github.com/GeoNode/geonode/tree/master/geonode/
> contrib/geosites
>
>
>


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


More information about the geonode-users mailing list