[GeoNode-users] Exists a project template for smartphone collection and upload?

Simone Dalmasso simone.dalmasso at gmail.com
Tue May 12 23:05:18 PDT 2015


Hi Charles,

here a few clarifications. The geonode_project template as per doc should
be used when you install geonode using apt-get (it's also possible to use
it with geonode in dev mode or in manual installation with some more
tricks). If you install geonode 2.4 (ppa/testing) then you have to use the
branch 2.4 of the geonode_project. $ django-admin startproject my_geonode
--template=https://github.com/GeoNode/geonode-project/archive/2.4.zip
-epy,rst. We will migrate this branch to master when geonode 2.4 will be
released as final.

The project should not be installed in /var/www because that is the apache
public directory and the /geonode folder that you see in there is for
public files such as thumbnails. So use the geonode project in any
directory you want but /var/www.

The geonode_project will read the system geonode settings so you won't have
to define those parameters.
If you follow the guide https://github.com/GeoNode/geonode-project/tree/2.4 as
it is, then it should work fine. And you can edit/customize the geonode
settings using the settings.py file that you fine in the geonode_project
because the geonode settings and the geonode_project settings are linked
together.

Hope this helps.

2015-05-12 20:18 GMT+02:00 Charles Cossé <ccosse at gmail.com>:

> When I installed ppa:geonode/testing it created /var/www/geonode, and
> /etc/apache2/sites-available/geonode.conf corectly refers to the layout of
> the /var/www/geonode directory.
>
>
> When I go to /var/www and do:
>     $ django-admin startproject my_geonode --template=
> https://github.com/GeoNode/geonode-project/archive/master.zip -epy,rst
>     $ sudo pip install -e my_geonode
>
> ... it creates /var/www/my_geonode, which has the familiar dango layout,
> but I cannot get it to work.  I am particularly confused by the difference
> in the layouts of the two directories, /var/www/geonode and
> /var/www/my_geonode.  I changed /etc/apache2/sites-available/geonode.conf
> to correspond to the familiar django layout installed by geonode-project,
> and proceeded to fight with it a little ...
>
> Initially it threw up some real errors, which I began fixing
> (geonode-project installed settings.py with undefined STATICFILES_DIRS,
> TEMPLATE_DIRS, SECRET_KEY, ANONYMOUS_USER_ID) ... but after defining those,
> now the errors are auth-related and I think it's time to ask for more
> help.
>
> Here is the latest, ultimate error from the apache2/error.log:
> ........
> [Tue May 12 12:47:41.126096 2015] [:error] [pid 3536:tid 140473235220224]
> [remote 70.210.228.122:40065]   File
> "/usr/lib/python2.7/dist-packages/tastypie/authentication.py", line 13, in
> <module>
> [Tue May 12 12:47:41.126141 2015] [:error] [pid 3536:tid 140473235220224]
> [remote 70.210.228.122:40065]     from tastypie.compat import User,
> username_field
> [Tue May 12 12:47:41.126201 2015] [:error] [pid 3536:tid 140473235220224]
> [remote 70.210.228.122:40065] ImportError: cannot import name
> username_field
> ...
>
> Thank you in advance!
> Charles
>
>
> On Mon, May 11, 2015 at 1:22 PM, Ariel Nunez <ingenieroariel at gmail.com>
> wrote:
>
>> 14.04 and 2.4b25
>>
>> -a
>>
>> On Mon, May 11, 2015 at 10:53 AM, Simone Dalmasso <
>> simone.dalmasso at gmail.com> wrote:
>>
>>> geonode 2.4 is the way to go :)
>>>
>>> 2015-05-11 17:32 GMT+02:00 Charles Cossé <ccosse at gmail.com>:
>>>
>>>> Sorry, I forgot to ask one more question.  I have 2 servers:
>>>>
>>>>    1. Ubuntu 12.04 w/ 2.4.dev20150428072710
>>>>    2. Ubuntu 14.04 w/ 2.4b25  (dev?)
>>>>
>>>> I need to reclaim (cancel) one of these servers ... I'm not sure if the
>>>> 14.04 installation was a "developer's installation" or not?  The only
>>>> reason I thought that it might be is just for the fact that it is still in
>>>> development, so what other type install would there be?  But it doesn't use
>>>> any of the virtual environment stuff like the 12.04 instance ... so I don't
>>>> know ...which should I keep for developing the above?
>>>>
>>>> On Mon, May 11, 2015 at 8:52 AM, Charles Cossé <ccosse at gmail.com>
>>>> wrote:
>>>>
>>>>> On Mon, May 11, 2015 at 8:13 AM, Simone Dalmasso <
>>>>> simone.dalmasso at gmail.com> wrote:
>>>>>>
>>>>>>
>>>>>> Well is your repo... :)
>>>>>>
>>>>>
>>>>> Okay, just checking in case use of personal repo could discourage
>>>>> collaboration or something ... idk
>>>>>
>>>>>
>>>>>> To link your app with GeoNode I suggest you to take a look at
>>>>>> https://github.com/GeoNode/geonode-project
>>>>>>
>>>>>
>>>>> Only that is for a website template (django-project), and I'm talking
>>>>> about a web-app template (django-app) ... but yes, otherwise there should
>>>>> be much guidance within the code ...
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Simone
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>>
>>>
>>
>


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


More information about the geonode-users mailing list