<div dir="ltr">OK, great Julierme, we're getting there! <div><br></div><div>I'm guessing you want to run Django & geonode from this virtualenv, so let's figure that out. </div><div><br></div><div>You need to find in which settings file sets the "django.db.backends.sqlite3" in your code, and then comment this section out. </div><div><br></div><div>If you can't find it, try something like: </div><div><br></div><div>

<pre style="margin:0px 0px 1em;padding:5px;border:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);word-wrap:normal;color:rgb(17,17,17);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:rgb(239,240,241);white-space:inherit">grep -r "django.db.backends.sqlite3" "/"</code></pre>which will search all files under your root directory "/" for this text. You might need a coffee while you wait, and might need to use sudo to avoid getting a bunch of "permission denied" messages.

<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 April 2018 at 18:42, Julierme Pinheiro <span dir="ltr"><<a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><span style="color:rgb(32,18,77)"><font size="4">Looking at the ALLOWED_HOSTS and PROXY_ALLOWED_HOSTS in the settings.py in my_geonode (Geonode-project DEV)<br><br>ALLOWED_HOSTS = ['localhost', 'django', '172.21.14.45'] if os.getenv('ALLOWED_HOSTS') is None \<br>    else re.split(r' *[,|:|;] *', os.getenv('ALLOWED_HOSTS'))<br><br>PROXY_ALLOWED_HOSTS += ('<a href="http://nominatim.openstreetmap.org" target="_blank">nominatim.openstreetmap.org</a>'<wbr>, '172.21.14.45',)<br><br></font></span></div><span style="color:rgb(32,18,77)"><font size="4">I am not sure if that configuration is missing something.<br><br></font></span></div><span style="color:rgb(32,18,77)"><font size="4">Kind regards<span class="HOEnZb"><font color="#888888"><br><br></font></span></font></span></div><span class="HOEnZb"><font color="#888888"><span style="color:rgb(32,18,77)"><font size="4">Julierme</font></span><br><div><div><div><br></div></div></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-04-19 11:17 GMT-03:00 Julierme Pinheiro <span dir="ltr"><<a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@<wbr>gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><span style="color:rgb(53,28,117)"><font size="4">Dear Toni Schonbuchner and Dave Kennewell,<br><br></font></span></div><span style="color:rgb(53,28,117)"><font size="4">Thank you very much for your reply. <br><br></font></span></div><span style="color:rgb(53,28,117)"><font size="4">First if I did not misunderstand Toni suggestion, I tried the following:<br><b><br></b></font></span></div><span style="color:rgb(53,28,117)"><font size="4"><b>1 - Commenting out <<span style="font-family:Helvetica;font-style:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline"># ENGINE': '', # Empty ENGINE name disables</span>> from local_settings.py in my_geonode (Geonode-Project Dev virtualenv)</b><br><br></font></span></div><span style="color:rgb(53,28,117)"><font size="4">Result: the problem remains<br><br></font></span></div><span style="color:rgb(53,28,117)"><font size="4"><b>2 - Uncommenting out <<span style="font-family:Helvetica;font-style:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline"> ENGINE': '', # Empty ENGINE name disables</span>> from local_settings.py in my_geonode (Geonode-Project Dev virtualenv) and inserting the line <<span style="font-family:Helvetica;font-style:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline"> ENGINE': '', # Empty ENGINE name disables</span>> in local_settings.py from Geonode (Geonode apt-get)</b>.<br><br></font></span></div><div><span style="color:rgb(53,28,117)"><font size="4">Result: the problem remains<br><br></font></span></div><div><span style="color:rgb(53,28,117)"><font size="4">However, I got a new response to Dave Kennewell suggestion after activating my_geonode virtualenv:<br><br><b>settings.DATABASES</b><br>{'default': {'ENGINE': 'django.db.backends.sqlite3', 'ATOMIC_REQUESTS': False, 'CONN_MAX_AGE': 600, 'HOST': '', 'USER': '', 'PASSWORD': '', 'OPTIONS': {}, 'AUTOCOMMIT': True, 'NAME': '/etc/julierme_virtualenv/my_g<wbr>eonode/local/lib/python2.7/sit<wbr>e-packages/geonode/development<wbr>.db', 'TIME_ZONE': 'UTC', 'PORT': '', 'TEST': {'COLLATION': None, 'CHARSET': None, 'NAME': None, 'MIRROR': None}}}<br><br></font></span></div><div><span style="color:rgb(53,28,117)"><font size="4">I think there is no database being used.<br><br></font></span></div><div><span style="color:rgb(53,28,117)"><font size="4">I also have to make some few notes:<br><br></font></span></div><div><span style="color:rgb(53,28,117)"><font size="4"><b>1 - ALLOWED_HOSTS, PROXY_ALLOWED_HOSTS and POSTGIS_VERSION are commented out in local_settings.py in my_geonode (Geonode-Project Dev)</b><br><br></font></span></div><div><span style="color:rgb(53,28,117)"><font size="4"><b>2 - Geoserver Port is 8080 in Geonode(apt-get) and 6060  in my_geonode(Geonode-Project Dev), but both are running fine.</b><br><br><br></font></span></div><div><span style="color:rgb(53,28,117)"><font size="4">Thank you very much for your time and patience.<br><br></font></span></div><div><span style="color:rgb(53,28,117)"><font size="4">I appreciated it.<span class="m_-2980097560109266067HOEnZb"><font color="#888888"><br><br></font></span></font></span></div><span class="m_-2980097560109266067HOEnZb"><font color="#888888"><div><span style="color:rgb(53,28,117)"><font size="4">Julierme<br></font></span></div><div><br><br><br><br></div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></font></span></div><div class="m_-2980097560109266067HOEnZb"><div class="m_-2980097560109266067h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-04-19 4:29 GMT-03:00 Toni Schönbuchner <span dir="ltr"><<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Dear Julierme,<div><br></div><div>I haven´t followed the whole thread but have a look at this comment:</div><div><br></div><div>       'ENGINE': '', # Empty ENGINE name disables</div><div><br></div><div>See if things change if you set ENGINE to geonode in your project.</div><div><br></div><div>Best regards,</div><div><br></div><div>Toni</div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><div style="word-wrap:break-word"><div><div>------------------------------<wbr>-----------------</div><div>CSGIS</div><div><br></div><div>------------------------------<wbr>-----------------</div><div><div><a href="https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g" target="_blank">Kolonnadenstraße 1</a></div><div><a href="https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g" target="_blank">04109 Leipzig</a></div></div><div>------------------------------<wbr>-----------------</div><div>Mobil<span class="m_-2980097560109266067m_-174495985107969686m_-104820682628425565Apple-tab-span" style="white-space:pre-wrap">     </span>+49/ (0) 176 6680 3198</div><div>Tel <span class="m_-2980097560109266067m_-174495985107969686m_-104820682628425565Apple-tab-span" style="white-space:pre-wrap">             </span>+49/ (0) 341 24 04 738</div><div>Fax <span class="m_-2980097560109266067m_-174495985107969686m_-104820682628425565Apple-tab-span" style="white-space:pre-wrap">             </span>+49/ (0) 341 24 04 73</div><div>Web<span class="m_-2980097560109266067m_-174495985107969686m_-104820682628425565Apple-tab-span" style="white-space:pre-wrap">                </span><a href="http://csgis.de" target="_blank">http://csgis.de</a></div><div>------------------------------<wbr>-----------------</div><div><br></div><div>Hinweis gemäß § 33 BDSG</div><div>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div></div></div>
</div>
<div><br><blockquote type="cite"><div>Am 18.04.2018 um 21:13 schrieb <a href="mailto:geonode-users-request@lists.osgeo.org" target="_blank">geonode-users-request@lists.os<wbr>geo.org</a>:</div><br class="m_-2980097560109266067m_-174495985107969686m_-104820682628425565Apple-interchange-newline"><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline!important">       'ENGINE': '', # Empty ENGINE name disables</span></div></blockquote></div><br></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>