<div dir="ltr">ok then create the symlink:<div>$ sudo ln -sf /etc/geonode/local_settings.py <span style="font-size:12.8px">/usr/local/lib/python2.7/dist-</span><span style="font-size:12.8px">packages/geonode/local_</span><span style="font-size:12.8px">settings.py that points to /etc/geonode/local_settings.</span><span style="font-size:12.8px">py</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">restart the web server and you should be ok</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-18 8:25 GMT+01:00 David Alda Fernandez de Lezea <span dir="ltr"><<a href="mailto:dalda@hazi.eus" target="_blank">dalda@hazi.eus</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
In the mentioned directory there's no "local_setttings.py" but there is a settings.py which has another GeoNode set up as I can see. Here's the content of the directory:<br>
<br>
u0899dal@Geonode:/usr/local/lib/python2.7/dist-packages/geonode$ ls -al<br>
total 264<br>
drwxr-sr-x  23 root staff  4096 nov 13 14:23 .<br>
drwxrwsr-x 107 root staff  4096 nov 13 14:20 ..<br>
drwxr-sr-x   2 root staff  4096 nov 13 14:19 api<br>
drwxr-sr-x   6 root staff  4096 nov 13 14:19 base<br>
drwxr-sr-x   4 root staff  4096 nov 13 14:19 catalogue<br>
-rw-r--r--   1 root staff   314 nov 13 14:17 celery_app.py<br>
-rw-r--r--   1 root staff   477 nov 13 14:19 celery_app.pyc<br>
-rw-r--r--   1 root staff  3018 nov 13 14:17 context_processors.py<br>
-rw-r--r--   1 root staff  1874 nov 13 14:19 context_processors.pyc<br>
drwxr-sr-x   4 root staff  4096 nov 13 14:19 contrib<br>
drwxr-sr-x   5 root staff  4096 nov 13 14:19 documents<br>
drwxr-sr-x   3 root staff  4096 nov 13 14:19 geoserver<br>
drwxr-sr-x   4 root staff  4096 nov 13 14:19 groups<br>
-rw-r--r--   1 root staff  1291 nov 13 14:17 __init__.py<br>
-rw-r--r--   1 root staff  1195 nov 13 14:19 __init__.pyc<br>
drwxr-sr-x   5 root staff  4096 nov 13 14:19 layers<br>
drwxr-sr-x  38 root staff  4096 nov 13 14:19 locale<br>
drwxr-sr-x   4 root staff  4096 nov 13 14:19 maps<br>
-rw-r--r--   1 root staff  1192 nov 13 14:17 middleware.py<br>
-rw-r--r--   1 root staff  1832 nov 13 14:19 middleware.pyc<br>
drwxr-sr-x   5 root staff  4096 nov 13 14:19 people<br>
drwxr-sr-x   2 root staff  4096 nov 13 14:19 proxy<br>
drwxr-sr-x   3 root staff  4096 nov 13 14:19 security<br>
drwxr-sr-x   4 root staff  4096 nov 13 14:19 services<br>
-rw-r--r--   1 root staff 26032 nov 13 14:17 settings.py<br>
-rw-r--r--   1 root staff 18850 nov 13 14:19 settings.pyc<br>
-rw-r--r--   1 root staff  1218 nov 13 14:17 sitemap.py<br>
-rw-r--r--   1 root staff  1336 nov 13 14:19 sitemap.pyc<br>
drwxr-sr-x   4 root staff  4096 nov 13 14:19 social<br>
drwxr-sr-x   4 root staff  4096 nov 13 14:19 static<br>
drwxr-sr-x  21 root staff  4096 nov 13 14:23 static_root<br>
drwxr-sr-x   2 root staff  4096 nov 13 14:19 tasks<br>
drwxr-sr-x  13 root staff  4096 nov 13 14:19 templates<br>
drwxr-sr-x   2 root staff  4096 nov 13 14:19 tests<br>
drwxr-sr-x   4 root staff  4096 nov 13 14:19 upload<br>
-rw-r--r--   1 root staff  5638 nov 13 14:17 urls.py<br>
-rw-r--r--   1 root staff  3999 nov 13 14:19 urls.pyc<br>
-rw-r--r--   1 root staff 21450 nov 13 14:17 utils.py<br>
-rw-r--r--   1 root staff 21371 nov 13 14:19 utils.pyc<br>
-rw-r--r--   1 root staff  2623 nov 13 14:17 version.py<br>
-rw-r--r--   1 root staff  2268 nov 13 14:19 version.pyc<br>
-rw-r--r--   1 root staff  3927 nov 13 14:17 views.py<br>
-rw-r--r--   1 root staff  3385 nov 13 14:19 views.pyc<br>
-rw-r--r--   1 root staff  1105 nov 13 14:17 wsgi.py<br>
-rw-r--r--   1 root staff   362 nov 13 14:19 wsgi.pyc<br>
u0899dal@Geonode:/usr/local/lib/python2.7/dist-packages/geonode$<br>
<br>
<br>
Regards,<br>
<br>
Agur bero bat,<br>
<br>
<br>
<br>
David Alda Fernández de Lezea<br>
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.<br>
dalda@hazi.eus | www.hazi.eus<br>
T 945 003 240 – M 627 923 170 – F 945 003 290<br>
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba<br>
 <br>
*********************  LEGE OHARRA   *******************   AVISOLEGAL   *******************   DISCLAIMER   *****************************<br>
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.<br>
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.<br>
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.<br>
<br>
De: Simone Dalmasso [mailto:<a href="mailto:simone.dalmasso@gmail.com">simone.dalmasso@gmail.com</a>]<br>
Enviado el: martes, 17 de noviembre de 2015 18:05<br>
Para: David Alda Fernandez de Lezea<br>
CC: <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
Asunto: Re: [GeoNode-users] Error accesing geonode<br>
<br>
Hi, <br>
there is a symlink in /usr/local/lib/python2.7/dist-packages/geonode/local_settings.py that points to /etc/geonode/local_settings.py.<br>
<br>
2015-11-17 9:27 GMT+01:00 David Alda Fernandez de Lezea <dalda@hazi.eus>:<br>
Hi again,<br>
<br>
In theory, the local_settigns.py does not have errors as it was working before the change.. Where is referenced from python the file /etc/geonode/local_settings.py??<br>
<br>
Agur bero bat,<br>
<br>
<br>
<br>
David Alda Fernández de Lezea<br>
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.<br>
dalda@hazi.eus | www.hazi.eus<br>
T 945 003 240 – M 627 923 170 – F 945 003 290<br>
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba<br>
 <br>
*********************  LEGE OHARRA   *******************   AVISOLEGAL   *******************   DISCLAIMER   *****************************<br>
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.<br>
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.<br>
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.<br>
<br>
De: Simone Dalmasso [mailto:<a href="mailto:simone.dalmasso@gmail.com">simone.dalmasso@gmail.com</a>]<br>
Enviado el: lunes, 16 de noviembre de 2015 10:47<br>
Para: David Alda Fernandez de Lezea<br>
CC: <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
Asunto: Re: [GeoNode-users] Error accesing geonode<br>
<br>
Ok then the /etc/geonode/local_settings.py file is not read correctly. <br>
<br>
The customization process that you used does not modify at all the geonode installation and to revert to a vanilla geonode it's enough to just point apache to the correct wsgi. So it must be something with the settings. Also a syntax erro in the local_settings could be the cause.<br>
<br>
2015-11-16 10:40 GMT+01:00 David Alda Fernandez de Lezea <dalda@hazi.eus>:<br>
I think I'm pointing to the right one:<br>
<br>
/etc/apache2/sites-available/geonode<br>
<br>
WSGIProcessGroup geonode<br>
    WSGIPassAuthorization On<br>
    WSGIScriptAlias / /var/www/geonode/wsgi/geonode.wsgi<br>
<br>
    <Directory "/var/www/geonode/"><br>
       Order allow,deny<br>
        Options Indexes FollowSymLinks<br>
        Allow from all<br>
        IndexOptions FancyIndexing<br>
    </Directory><br>
<br>
Still getting the same error.<br>
<br>
<br>
Agur bero bat,<br>
<br>
<br>
<br>
David Alda Fernández de Lezea<br>
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.<br>
dalda@hazi.eus | www.hazi.eus<br>
T 945 003 240 – M 627 923 170 – F 945 003 290<br>
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba<br>
 <br>
*********************  LEGE OHARRA   *******************   AVISOLEGAL   *******************   DISCLAIMER   *****************************<br>
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.<br>
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.<br>
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.<br>
<br>
De: Simone Dalmasso [mailto:<a href="mailto:simone.dalmasso@gmail.com">simone.dalmasso@gmail.com</a>]<br>
Enviado el: lunes, 16 de noviembre de 2015 10:00<br>
Para: David Alda Fernandez de Lezea<br>
CC: <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
Asunto: Re: [GeoNode-users] Error accesing geonode<br>
<br>
Maybe apache is still pointing to the wrong wsgi file, not the original geonode. Also try to turn on debug in your settings, you will discover if they are actually used and in case yes where the error is.<br>
<br>
2015-11-16 9:44 GMT+01:00 David Alda Fernandez de Lezea <dalda@hazi.eus>:<br>
Hi Simone,<br>
<br>
I had it working normally before I started modifying all the look and feel part. Indeed, I haven't changed anything to pint to sqllite.<br>
<br>
I also have my local_settigns.py customized and it was working fine. How can I point the app to my settings file ?<br>
<br>
By the way I forgot to put the link with the instructions I followed: <a href="https://geonode.readthedocs.org/en/master/tutorials/admin/customize_admin/setup_admin.html#customize-setup-admin" rel="noreferrer" target="_blank">https://geonode.readthedocs.org/en/master/tutorials/admin/customize_admin/setup_admin.html#customize-setup-admin</a><br>
<br>
<br>
Agur bero bat,<br>
<br>
<br>
<br>
David Alda Fernández de Lezea<br>
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.<br>
dalda@hazi.eus | www.hazi.eus<br>
T 945 003 240 – M 627 923 170 – F 945 003 290<br>
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba<br>
 <br>
*********************  LEGE OHARRA   *******************   AVISOLEGAL   *******************   DISCLAIMER   *****************************<br>
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.<br>
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.<br>
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.<br>
<br>
De: Simone Dalmasso [mailto:<a href="mailto:simone.dalmasso@gmail.com">simone.dalmasso@gmail.com</a>]<br>
Enviado el: lunes, 16 de noviembre de 2015 9:37<br>
Para: David Alda Fernandez de Lezea<br>
CC: <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
Asunto: Re: [GeoNode-users] Error accesing geonode<br>
<br>
Hi David, <br>
<br>
it seems that your settings file is not configured with the correct database. Is trying to access a file so it's likely that is configured to use sqllite. <br>
<br>
Regards<br>
<br>
2015-11-16 9:25 GMT+01:00 David Alda Fernandez de Lezea <dalda@hazi.eus>:<br>
Hi list,<br>
<br>
I've been trying to customize the look and feel of my geonode following the instructions in  . After configuring several options and not achieving to get anything working y decide to rollback, but now while accessing my geonode app y get the following error:<br>
<br>
OperationalError at /<br>
unable to open database file<br>
Request Method: GET<br>
Request URL:    <a href="http://192.168.1.190/" rel="noreferrer" target="_blank">http://192.168.1.190/</a><br>
Django Version: 1.6.10<br>
Exception Type: OperationalError<br>
Exception Value:<br>
unable to open database file<br>
Exception Location:     /usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py in get_new_connection, line 347<br>
Python Executable:      /usr/bin/python<br>
Python Version: 2.7.3<br>
Python Path:<br>
['/usr/lib/python2.7',<br>
 '/usr/lib/python2.7/plat-linux2',<br>
 '/usr/lib/python2.7/lib-tk',<br>
 '/usr/lib/python2.7/lib-old',<br>
 '/usr/lib/python2.7/lib-dynload',<br>
 '/usr/local/lib/python2.7/dist-packages',<br>
 '/usr/lib/python2.7/dist-packages',<br>
 '/usr/lib/python2.7/dist-packages/PIL',<br>
 '/usr/lib/python2.7/dist-packages/gst-0.10',<br>
 '/usr/lib/python2.7/dist-packages/gtk-2.0',<br>
 '/usr/lib/pymodules/python2.7',<br>
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',<br>
 '/usr/lib/python2.7/dist-packages/ubuntuone-client',<br>
 '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',<br>
 '/usr/lib/python2.7/dist-packages/ubuntuone-couch',<br>
 '/usr/lib/python2.7/dist-packages/ubuntuone-installer',<br>
 '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',<br>
 '/var/www']<br>
Server time:    Mon, 16 Nov 2015 02:16:42 -0600<br>
<br>
......<br>
<br>
I can access GeoServer though.<br>
<br>
Any ideas? Thanks in advance.<br>
<br>
Regards,<br>
<br>
Agur bero bat,<br>
<br>
<br>
David Alda Fernández de Lezea<br>
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.<br>
dalda@hazi.eus | www.hazi.eus<br>
T 945 003 240 - M 627 923 170 - F 945 003 290<br>
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba<br>
 <br>
*********************  LEGE OHARRA   *******************   AVISOLEGAL   *******************   DISCLAIMER   *****************************<br>
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.<br>
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.<br>
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.<br>
<br>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
<br>
<br>
<br>
<br>
--<br>
Simone <br>
<br>
<br>
<br>
<br>
--<br>
Simone <br>
<br>
<br>
<br>
<br>
--<br>
Simone <br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
--<br>
Simone <br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>