4

I am trying to follow these steps http://www.paolocorti.net/foss4g_2017_geonode_solr/10_customization.html but I installed geonode using the quick start tutorial http://geonode.org/#install. I am not able to run the solr app. I think the paths and configuration should be different and I tried changes like changing

  • mkdir geonode/solr to mkdir solr
  • python manage.py startapp solr geonode/solr to geonode startapp solr solr
  • # solr application urls urlpatterns += patterns('', url(r'^solr/', include('geonode.solr.urls')), ) to # solr application urls urlpatterns += patterns('', url(r'^solr/', include('solr.urls')), )

But I cannot get it to work


  • Figured out path. change cd /workshop/geonode to cd /usr/local/lib/python2.7/dist-packages

Now I get Error occurred while trying to load geonode.urls: name 'patterns' is not defined `

1

patterns must be defined in geonode/urls.py. Edit geonode/urls.py and add:

from django.conf.urls import patterns

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

3

Finally working:

'patterns' is not defined in geonode/urls.py. Edit geonode/urls.py and add the following in the imports:

from django.conf.urls import patterns, url

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.