librelist archives

« back to archive

Extending Geonode on Ubuntu Machine

Extending Geonode on Ubuntu Machine

From:
Giovanni Foiani
Date:
2011-12-16 @ 09:20
Hi,

this is my first post on Geonode Mailing List.
I'm new to Geonode, I installed it on Ubuntu Server 10.04 using GeoNode PPA
repository and it's working great.
Now I'm trying to extend Geonode following the "Best
Practises"<http://docs.geonode.org/en/latest/developers/extend.html>,
in order to add some editing features.
I can't run the following command on my machine:

*source /var/www/geonode/wsgi/geonode/bin/activate*

(No such file or directory error given)
Can some one help me or give me some hints?

Thanks

Giovanni

--

Dott. Ing. Giovanni Foiani

Cell:        +39-349-3577515
Phone:    +39-0532-97-4106
mail:        giovanni.foiani@unife.it
CenTec - Via Guercino, 47 - 44042 Cento (FE)

Re: [geonode] Extending Geonode on Ubuntu Machine

From:
Ben
Date:
2011-12-16 @ 11:35
try:

source /var/lib/geonode/bin/activate

Ben

On Dec 16, 2011, at 10:20 AM, Giovanni Foiani wrote:

> Hi,
> 
> this is my first post on Geonode Mailing List.
> I'm new to Geonode, I installed it on Ubuntu Server 10.04 using GeoNode 
PPA repository and it's working great.
> Now I'm trying to extend Geonode following the "Best Practises", in 
order to add some editing features.
> I can't run the following command on my machine:
> 
> source /var/www/geonode/wsgi/geonode/bin/activate
> 
> (No such file or directory error given)
> Can some one help me or give me some hints?
> 
> Thanks
> 
> Giovanni
> 
> --
> 
> Dott. Ing. Giovanni Foiani
> 
> Cell:        +39-349-3577515
> Phone:    +39-0532-97-4106
> mail:        giovanni.foiani@unife.it
> CenTec - Via Guercino, 47 - 44042 Cento (FE)
> 

Re: [geonode] Extending Geonode on Ubuntu Machine

From:
Giovanni Foiani
Date:
2011-12-16 @ 11:40
Yes, I did it.
It works.

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:        +39-349-3577515
Phone:    +39-0532-97-4106
mail:        giovanni.foiani@unife.it
CenTec - Via Guercino, 47 - 44042 Cento (FE)



On Fri, Dec 16, 2011 at 12:35 PM, Ben <ben@openquake.org> wrote:

> try:
>
> source /var/lib/geonode/bin/activate
>
> Ben
>
> On Dec 16, 2011, at 10:20 AM, Giovanni Foiani wrote:
>
> Hi,
>
> this is my first post on Geonode Mailing List.
> I'm new to Geonode, I installed it on Ubuntu Server 10.04 using GeoNode
> PPA repository and it's working great.
> Now I'm trying to extend Geonode following the "Best 
Practises"<http://docs.geonode.org/en/latest/developers/extend.html>,
> in order to add some editing features.
> I can't run the following command on my machine:
>
> *source /var/www/geonode/wsgi/geonode/bin/activate*
>
> (No such file or directory error given)
> Can some one help me or give me some hints?
>
> Thanks
>
> Giovanni
>
> --
>
> Dott. Ing. Giovanni Foiani
>
> Cell:        +39-349-3577515
> Phone:    +39-0532-97-4106
> mail:        giovanni.foiani@unife.it
> CenTec - Via Guercino, 47 - 44042 Cento (FE)
>
>
>

Re: [geonode] Extending Geonode on Ubuntu Machine

From:
David Winslow
Date:
2011-12-16 @ 14:31
updated the docs. Thanks Ben.

--
David Winslow
OpenGeo - http://opengeo.org/

On Fri, Dec 16, 2011 at 6:40 AM, Giovanni Foiani <fnognn@unife.it> wrote:

> Yes, I did it.
> It works.
>
> Thanks
>
> Giovanni
> --
>
> Dott. Ing. Giovanni Foiani
>
> Cell:        +39-349-3577515
> Phone:    +39-0532-97-4106
> mail:        giovanni.foiani@unife.it
> CenTec - Via Guercino, 47 - 44042 Cento (FE)
>
>
>
> On Fri, Dec 16, 2011 at 12:35 PM, Ben <ben@openquake.org> wrote:
>
>> try:
>>
>> source /var/lib/geonode/bin/activate
>>
>> Ben
>>
>> On Dec 16, 2011, at 10:20 AM, Giovanni Foiani wrote:
>>
>> Hi,
>>
>> this is my first post on Geonode Mailing List.
>> I'm new to Geonode, I installed it on Ubuntu Server 10.04 using GeoNode
>> PPA repository and it's working great.
>> Now I'm trying to extend Geonode following the "Best 
Practises"<http://docs.geonode.org/en/latest/developers/extend.html>,
>> in order to add some editing features.
>> I can't run the following command on my machine:
>>
>> *source /var/www/geonode/wsgi/geonode/bin/activate*
>>
>> (No such file or directory error given)
>> Can some one help me or give me some hints?
>>
>> Thanks
>>
>> Giovanni
>>
>> --
>>
>> Dott. Ing. Giovanni Foiani
>>
>> Cell:        +39-349-3577515
>> Phone:    +39-0532-97-4106
>> mail:        giovanni.foiani@unife.it
>> CenTec - Via Guercino, 47 - 44042 Cento (FE)
>>
>>
>>
>

Re: [geonode] Extending Geonode on Ubuntu Machine

From:
Giovanni Foiani
Date:
2011-12-16 @ 16:42
I followed all steps reported in the guide but the configuration does not
work.
When I run a *syncdb* command, DJANGO_SETTING_MODULE results not defined.
Any help?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:        +39-349-3577515
Phone:    +39-0532-97-4106
mail:        giovanni.foiani@unife.it
CenTec - Via Guercino, 47 - 44042 Cento (FE)



On Fri, Dec 16, 2011 at 3:31 PM, David Winslow <dwinslow@opengeo.org> wrote:

> updated the docs. Thanks Ben.
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
>
> On Fri, Dec 16, 2011 at 6:40 AM, Giovanni Foiani <fnognn@unife.it> wrote:
>
>> Yes, I did it.
>> It works.
>>
>> Thanks
>>
>> Giovanni
>> --
>>
>> Dott. Ing. Giovanni Foiani
>>
>> Cell:        +39-349-3577515
>> Phone:    +39-0532-97-4106
>> mail:        giovanni.foiani@unife.it
>> CenTec - Via Guercino, 47 - 44042 Cento (FE)
>>
>>
>>
>> On Fri, Dec 16, 2011 at 12:35 PM, Ben <ben@openquake.org> wrote:
>>
>>> try:
>>>
>>> source /var/lib/geonode/bin/activate
>>>
>>> Ben
>>>
>>> On Dec 16, 2011, at 10:20 AM, Giovanni Foiani wrote:
>>>
>>> Hi,
>>>
>>> this is my first post on Geonode Mailing List.
>>> I'm new to Geonode, I installed it on Ubuntu Server 10.04 using GeoNode
>>> PPA repository and it's working great.
>>> Now I'm trying to extend Geonode following the "Best 
Practises"<http://docs.geonode.org/en/latest/developers/extend.html>,
>>> in order to add some editing features.
>>> I can't run the following command on my machine:
>>>
>>> *source /var/www/geonode/wsgi/geonode/bin/activate*
>>>
>>> (No such file or directory error given)
>>> Can some one help me or give me some hints?
>>>
>>> Thanks
>>>
>>> Giovanni
>>>
>>> --
>>>
>>> Dott. Ing. Giovanni Foiani
>>>
>>> Cell:        +39-349-3577515
>>> Phone:    +39-0532-97-4106
>>> mail:        giovanni.foiani@unife.it
>>> CenTec - Via Guercino, 47 - 44042 Cento (FE)
>>>
>>>
>>>
>>
>

Re: [geonode] Extending Geonode on Ubuntu Machine

From:
Ariel Nunez
Date:
2011-12-16 @ 18:01
Short answer
===========

Use the following instead:

cd <your_project_dir>
python manage.py syncdb


Long Answer
===========

The DJANGO_SETTINGS_MODULE variable is usually assigned the following
value: 'geonode.settings'. Since you are extending GeoNode with a new
project, the correct value is: yourproject.settings

You can set it up in the terminal, like:

export DJANGO_SETTINGS_MODULE=yourproject.settings

and then run the commands with django-admin.py.

The more common option, however is to use the provided shortcut called
manage.py in the root of your project, it will automatically pick up the
settings.py file next to it, for example:

python manage.py syncdb

In the geonode package we go one step further and create a command called
'geonode' in /usr/bin/ (or /usr/sbin) that activates the virtualenv and
calls:

django-admin.py (your parameters) --settings=geonode.settings

More detailed info can be found in the Django docs[1]


Happy hacking,
Ariel.

[1] https://docs.djangoproject.com/en/dev/ref/django-admin/



On Fri, Dec 16, 2011 at 11:42 AM, Giovanni Foiani <fnognn@unife.it> wrote:

> I followed all steps reported in the guide but the configuration does not
> work.
> When I run a *syncdb* command, DJANGO_SETTING_MODULE results not defined.
> Any help?
>
> Thanks
>
> Giovanni
> --
>
> Dott. Ing. Giovanni Foiani
>
> Cell:        +39-349-3577515
> Phone:    +39-0532-97-4106
> mail:        giovanni.foiani@unife.it
> CenTec - Via Guercino, 47 - 44042 Cento (FE)
>
>
>
> On Fri, Dec 16, 2011 at 3:31 PM, David Winslow <dwinslow@opengeo.org>wrote:
>
>> updated the docs. Thanks Ben.
>>
>> --
>> David Winslow
>> OpenGeo - http://opengeo.org/
>>
>>
>> On Fri, Dec 16, 2011 at 6:40 AM, Giovanni Foiani <fnognn@unife.it> wrote:
>>
>>> Yes, I did it.
>>> It works.
>>>
>>> Thanks
>>>
>>> Giovanni
>>> --
>>>
>>> Dott. Ing. Giovanni Foiani
>>>
>>> Cell:        +39-349-3577515
>>> Phone:    +39-0532-97-4106
>>> mail:        giovanni.foiani@unife.it
>>> CenTec - Via Guercino, 47 - 44042 Cento (FE)
>>>
>>>
>>>
>>> On Fri, Dec 16, 2011 at 12:35 PM, Ben <ben@openquake.org> wrote:
>>>
>>>> try:
>>>>
>>>> source /var/lib/geonode/bin/activate
>>>>
>>>> Ben
>>>>
>>>> On Dec 16, 2011, at 10:20 AM, Giovanni Foiani wrote:
>>>>
>>>> Hi,
>>>>
>>>> this is my first post on Geonode Mailing List.
>>>> I'm new to Geonode, I installed it on Ubuntu Server 10.04 using GeoNode
>>>> PPA repository and it's working great.
>>>> Now I'm trying to extend Geonode following the "Best 
Practises"<http://docs.geonode.org/en/latest/developers/extend.html>,
>>>> in order to add some editing features.
>>>> I can't run the following command on my machine:
>>>>
>>>> *source /var/www/geonode/wsgi/geonode/bin/activate*
>>>>
>>>> (No such file or directory error given)
>>>> Can some one help me or give me some hints?
>>>>
>>>> Thanks
>>>>
>>>> Giovanni
>>>>
>>>> --
>>>>
>>>> Dott. Ing. Giovanni Foiani
>>>>
>>>> Cell:        +39-349-3577515
>>>> Phone:    +39-0532-97-4106
>>>> mail:        giovanni.foiani@unife.it
>>>> CenTec - Via Guercino, 47 - 44042 Cento (FE)
>>>>
>>>>
>>>>
>>>
>>
>

Re: [geonode] Extending Geonode on Ubuntu Machine

From:
Ariel Nunez
Date:
2011-12-16 @ 18:16
Giovanni,

I updated other paths and suggestions in that page to better reflect the
location of scripts when installed via the  ubuntu packages.[1] Changes are
now live at  readthedocs.[2]

Please let us know if you find any other problems and also about the kind
of topics you would like to know about during your customization but are
not there.

Thanks,
Ariel.

[1]
https://github.com/GeoNode/geonode/commit/d4f7fde4427f09bf12fe75727534d667ddc953d7
[2] http://docs.geonode.org/en/latest/developers/extend.html

Re: [geonode] Extending Geonode on Ubuntu Machine

From:
Giovanni Foiani
Date:
2011-12-20 @ 09:53
Hi Ariel,

thanks you for your answers.
Now I have successfully created a custom project which extend Geonode, now
I'm able to call both Geonode and my custom routes.
I'm quite new to Geonode and Python but I have a quite good experience with
other MVC frameworks like Symfony (PHP) and Ruby on Rails and geographic
tools like Geoserver, Open Layers etc..
I'd like to extend Geonode (which almost do everything I want) adding
some tools for layer editing (both geometries and feature attributes) and
searching by feature attributes.
My "dream" would be the integration of out-of-the-box tools into Geonode
instead of doing a whole custom work.
So I'd like to know any suggestion, "best practise" or advice on how to add
this features to Geonode

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:        +39-349-3577515
Phone:    +39-0532-97-4106
mail:        giovanni.foiani@unife.it
CenTec - Via Guercino, 47 - 44042 Cento (FE)



On Fri, Dec 16, 2011 at 7:16 PM, Ariel Nunez <ingenieroariel@gmail.com>wrote:

> Giovanni,
>
> I updated other paths and suggestions in that page to better reflect the
> location of scripts when installed via the  ubuntu packages.[1] Changes are
> now live at  readthedocs.[2]
>
>  Please let us know if you find any other problems and also about the
> kind of topics you would like to know about during your customization but
> are not there.
>
> Thanks,
> Ariel.
>
> [1]
> 
https://github.com/GeoNode/geonode/commit/d4f7fde4427f09bf12fe75727534d667ddc953d7
> [2] http://docs.geonode.org/en/latest/developers/extend.html
>