[GeoNode-devel] Custom geonode project installation

Toni Schönbuchner toni.schoenbuchner at csgis.de
Wed Dec 19 08:55:40 PST 2018


Dear Dimitris,

> So to understand, if I want to have my own geonode-project, I don't need to go through the process of installing 'geonode core‘. 

Exactly it´s installed as dependency via pip. You do not have to care about it.

> What eventually need is to have two different folders. One with the geonode core project, which I want modify and the other one with my_geonode project, in which I will apply changes.

I haven´t done this workshop yet. But you should not touch the core!
Im quite sure the workshop is meant that you do your changes in geonode-project. 

Cheers,

Toni

-----------------------------------------------
CSGIS

-----------------------------------------------
Kolonnadenstraße 1
04109 Leipzig
-----------------------------------------------
Mobil	+49/ (0) 176 6680 3198
Tel 		+49/ (0) 341 24 04 738
Fax 		+49/ (0) 341 24 04 73
Web		http://csgis.de
-----------------------------------------------

Hinweis gemäß § 33 BDSG
Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den 
Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich 
erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht 
von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, 
Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.

> Am 19.12.2018 um 17:49 schrieb Dimitris Kar <dkarakostis at gmail.com>:
> 
> Thanks Toni, 
> 
> So to understand, if I want to have my own geonode-project, I don't need to go through the process of installing 'geonode core'. I can directly install the geonode-project?
> 
> But if I understand correctly the training instructions (http://geonode.org/dev-workshop/#/3/2 <http://geonode.org/dev-workshop/#/3/2>) I need to follow the below steps after I have installed the 'geonode core project':
> 
> 1. Make sure to run it just outside the geonode folder as we will keep them completely separate: django-admin.py startproject my_geonode --template=https://github.com/GeoNode/geonode-project/archive/master.zip <https://github.com/GeoNode/geonode-project/archive/master.zip> -e py,rst,json,yml,ini,env,sample -n Dockerfile my_geonode
> 2. workon geonode and 
> 3. execute: pip install -e my_geonode
> 4.  DJANGO_SETTINGS_MODULE=my_geonode.local_settings paver start
> 
> What eventually need is to have two different folders. One with the geonode core project, which I want modify and the other one with my_geonode project, in which I will apply changes.
> 
> On Wed, Dec 19, 2018 at 5:27 PM Toni Schönbuchner <toni.schoenbuchner at csgis.de <mailto:toni.schoenbuchner at csgis.de>> wrote:
> Hi Dimitris,
> 
> it sounds you´re a bit puzzled between 'geonode core‘ and geonode-project.
> 
> To understand better see whats happening with geonode-project:
> 
> It installs `geonode core` as dependency:
> 	https://github.com/GeoNode/geonode-project/blob/master/requirements.txt#L2 <https://github.com/GeoNode/geonode-project/blob/master/requirements.txt#L2>
> further loads/overwrites it´s settings:
> 	https://github.com/GeoNode/geonode-project/blob/master/project_name/settings.py#L30 <https://github.com/GeoNode/geonode-project/blob/master/project_name/settings.py#L30>
> 
> Doing so we can overwrite things like templates etc. in Geonode-Project without touching
> core files. 
> 
> As a rule of thumb, if you´d like to commit changes to geonode core, create a fork of the upstream
> repository, do your changes and create a PR.
> 
> I think in your case – as you´d like to modify your specific version – start by creating a geonode 
> project as described here (and ignore the first 'geonode core' dev setup):
> 	https://github.com/GeoNode/geonode-project#create-a-custom-project <https://github.com/GeoNode/geonode-project#create-a-custom-project>
> 
> I hope I did not misunderstood your question.
> Happy geonod’ ing.
> 
> – Toni
> 
> -----------------------------------------------
> CSGIS
> 
> -----------------------------------------------
> Kolonnadenstraße 1
> 04109 Leipzig
> -----------------------------------------------
> Mobil	+49/ (0) 176 6680 3198
> Tel 		+49/ (0) 341 24 04 738
> Fax 		+49/ (0) 341 24 04 73
> Web		http://csgis.de <http://csgis.de/>
> -----------------------------------------------
> 
> Hinweis gemäß § 33 BDSG
> Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den 
> Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich 
> erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht 
> von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, 
> Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.
> 
>> 
>> ----------------------------------------------------------------------
>> 
>> Message: 1
>> Date: Wed, 19 Dec 2018 16:57:16 +0100
>> From: Dimitris Kar <dkarakostis at gmail.com <mailto:dkarakostis at gmail.com>>
>> To: geonode-devel <geonode-devel at lists.osgeo.org <mailto:geonode-devel at lists.osgeo.org>>
>> Subject: [GeoNode-devel] Custom geonode project installation
>> Message-ID:
>> 	<CAH4UFc99H4OuAxKUc+FhFZ=13gSJZDdMnH7Lj1=ec49Qg+6sgA at mail.gmail.com <mailto:CAH4UFc99H4OuAxKUc+FhFZ=13gSJZDdMnH7Lj1=ec49Qg+6sgA at mail.gmail.com>>
>> Content-Type: text/plain; charset="utf-8"
>> 
>> Hello all,
>> 
>> 
>> I am trying following the instructions from this workshop (
>> http://geonode.org/dev-workshop/#/2 <http://geonode.org/dev-workshop/#/2>) in order to install GeoNode and a
>> GeoNode project. I have installed GeoNode in dev mode using a python
>> virtualenv + django development server method.
>> 
>> Then I follow the instructions in order to create a geonode-project as
>> following:
>> 
>> 
>> 
>>   1. cd ./geonode
>>   2. django-admin.py startproject wfp_geonode --template=
>>   https://github.com/GeoNode/geonode-project/archive/master.zip <https://github.com/GeoNode/geonode-project/archive/master.zip> -e
>>   py,rst,json,yml,ini,env,sample -n Dockerfile wfp_geonode  (I executed
>>   this command without includong: -n Dockerfile wfp_geonode)
>>   3. workon geonode
>>   4. cd wfp_geonode
>>   5. pip install -e wfp_geonode
>>   6. cd ../geonode
>>   7. DJANGO_SETTINGS_MODULE=wfp_geonode.local_settings paver start
>> 
>> 
>> But when I actually run the command, I get the below command. If I am not
>> wrong, I remember, that I can not use geonode-project aside with a geonode
>> dev installation but this is not quite clear in the above workshop
>> presentation (see above link).
>> 
>> 
>> Did anyone had similar issues? Should I install a geonode for production
>> and use the geonode-project then?
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20181219/39e77e05/attachment.html>


More information about the geonode-devel mailing list