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

Charles Cossé ccosse at gmail.com
Tue May 12 11:18:32 PDT 2015


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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150512/274053bf/attachment.html>


More information about the geonode-users mailing list