<div dir="auto"><div dir="ltr">Hi Dave,<div><br></div><div>FYI I'm looking at an install script to be able to inject custom modules into a base django project - with GeoNode as a target.</div><div><br></div><div>This will handle:</div><div>* importing custom settings for module via a template</div><div>* injection into INSTALLED_APPS and urls.py</div><div>* running migrations</div><div>* collecting static files</div><div>* installing and configuring additional resources and components used by the module (e.g. other tomcat WARs)</div><div>* performing tests (planned)</div><div><br></div><div>  I have an ansible version (on a private repo) but am waiting for some info from the Boundless folk about using a vanilla shell approach for improved portability, and some details on how to best run this in a docker context (as i'm a docker noob)</div><div><br></div><div>if you are interested happy to work with you to either;</div><div>1) explore adding modules like django-gazetteer to your project using this approach</div><div>2) refactor your project to inject your specialised extensions into a base Geonode install.</div><div><br></div><div><br></div><div>Cheers</div><div>Rob</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 8 Sep 2017 at 02:32 Dave Kennewell <<a href="mailto:davekennewell@gmail.com" target="_blank">davekennewell@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Geonode Devs, <div><br></div><div>I'm using geonode 2.6.3 installed by apt-get on a fresh ubuntu 16.04 instance.</div><div><br></div><div>On top of this I install geonode-project, and customise settings.py in mygeonodeproject. </div><div><br></div><div>This works fine if I use the postgres database that apt-get automatically installs locally on my geonode server. </div><div><br></div><div>However, when I go to swap out this local database with a remote one (it's on AWS RDS), it's all good until the command "sudo geonode-updateip <a href="http://mygeonodeproject.com" target="_blank">mygeonodeproject.com</a>" tells me I don't have a superuser created (I do, but it's on the remote database, created using the manage.py command in mygeonodeproject folder). </div><div><br></div><div>When I drill into this a bit deeper, it appears to come down to this line: </div><div><br></div><div><a href="https://github.com/GeoNode/geonode/blob/2.6.x/geonode/base/management/commands/fixoauthuri.py#L33" target="_blank">https://github.com/GeoNode/<wbr>geonode/blob/2.6.x/geonode/<wbr>base/management/commands/<wbr>fixoauthuri.py#L33</a><br></div><div><br></div><div>This line ("<span class="m_-6368757389771833349m_-6535893263073083638gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">from</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;background-color:rgb(255,251,221)"> django.conf </span><span class="m_-6368757389771833349m_-6535893263073083638gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">import</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;background-color:rgb(255,251,221)"> settings")</span> is pulling in models from the local geonode database, not the remote RDS database I'm using for mygeonodeproject. </div><div><br></div><div>What am I doing wrong here, and what is the best way to import my custom project into this command rather than the globally installed geonode, when using "from django.conf import settings"? </div><div><br></div><div>thanks for any help</div><div>regards</div><div>Dave</div><div><br></div></div>
______________________________<wbr>_________________<br>
geonode-devel mailing list<br>
<a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-devel</a><br>
</blockquote></div></div>