0% found this document useful (0 votes)
251 views5 pages

(GeoNode-users) Geonode and Django Content Management System

Jesús integrated Geonode and Django CMS successfully for a project. There were challenges with internationalization, JavaScript errors, and URLs. Integrating Django CMS as an app within Geonode could help leverage the projects. David is also working on integrating the two and authoring Geonode maps within the Django CMS content editor. He created a plugin and code on GitHub for this.

Uploaded by

SiAgam Devinfo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
251 views5 pages

(GeoNode-users) Geonode and Django Content Management System

Jesús integrated Geonode and Django CMS successfully for a project. There were challenges with internationalization, JavaScript errors, and URLs. Integrating Django CMS as an app within Geonode could help leverage the projects. David is also working on integrating the two and authoring Geonode maps within the Django CMS content editor. He created a plugin and code on GitHub for this.

Uploaded by

SiAgam Devinfo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

[GeoNode-users] Geonode and Django Content Management System

David Kennewell david.kennewell at hydrata.com


Wed Jun 29 00:57:49 PDT 2016

Previous message (by thread): [GeoNode-users] Geonode and Django Content Management System
Next message (by thread): [GeoNode-users] database update error
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

That's some great work Jess, thanks. It's always reassuring knowing that a
task is possible before you set out! Let me know when you've got a blog
post up - I'd be interested to see how it looks & understand the user
experience a bit more.

It looks like I'm going to go ahead with the integration for my site - I'll
pay attention to the challenges you've highlighted there, and let you know
how I get on with them.

I also note you're using django-cms==3.1.5.It's the latest CMS version


(3.3) that has dropped support for django 1.6 & 1.7. I'll test out both
options and figure out a way forward. My preference will be to use geonode
master & djangocms3.3, to avail future upgrades, but we'll see if it works.
It will be useful having your code to track the differences.

Dave

On Sun, Jun 26, 2016 at 10:11 PM, Jess <gesusjl at gmail.com> wrote:

> Hi all,
>
> I have succesfully integrated django-cms and geonode for a project
> currently available at darwinfoundation.org/geoportal or

1 of 5 01/04/2017 11:50
> geoportal.darwinfoundation.org . Hope we can start uploading data and
> blog posts soon. We have an internal geonode with layers, maps, and posts
> as part of the workflow.
>
> There's plenty of space for further development but i needed to stop at
> some point to cover other tasks.
>
> Current version of django-cms use django 1.6 and has been installed
> manually. I have integrated djangocms-blog for multilingual post and a wiki
> system also.
>
> I didn't touch the models nor views so we can benefit from geonode project
> development . I have not developed geonode django-cms plugins but should be
> easy enough to integrated them on geonode.
>
> For already published maps i use iframes to embed them on posts. The
> workflow is quite simple. Users publish maps and editors can use those maps
> among other resources to publish stories.
>
> I found no problem related with the auth system so far. Admins can use the
> group app to give permissions to advance users.
>
> The code needs cleaning and would benefit from refactoring but you can
> take a look at
> https://github.com/jesusjl/cdfgeonode/tree/2.4.x-geonode-1.0.0.
>
> It's just a geonode template with customizations.
>
>
> Some challenges i found on the path...
>
> Internationalization: I had problems with the way geonode and django-cms
> manage internationalization. As far as i know django-cms use parler... So
> with some hacks i was able to use both ways to handle this topic. I had a
> lot of problems by the way geonode handle layers and maps urls, mostly 404
> errors.
>
> Javascript: i had some javascript error difficult to debug when allowing

2 of 5 01/04/2017 11:50
> geonode pages be controlled by django-cms, but i was able to use
> placeholders at the homepage. Care should be taken anyway.
>
> Url: I was expecting to use django i18n patterns to handle geonode urls as
> part of django-cms but it became really cumbersome. So i just import
> geonode url and include django-cms urls at the end. See internalization for
> the purpose on it.
>
> Probably someone with more django experience could surpass all this
> difficulties. Im sure that integrating django-cms on geonode would leverage
> the project to a new level and probably it is worth the investment.
>
> Hope i can help within my means and would love to hear more on this topic.
>
> Jesus
>
> 2016-06-23 1:53 GMT-06:00 David Kennewell <david.kennewell at hydrata.com>:
>
>> Hi there Geonode users,
>>
>> I wanted to share a few developments we've made with Geonode and
>> DjangoCMS, and learn if there are others in the community headed in this
>> direction.
>>
>> For those not familiar with django-cms <http://django-cms.org> it's a
>> tool that allows users to edit and publish content directly to a website
>> through their browser. No coding or web developer required. A typical
>> usecase would be a reporting publishing an article to her newspaper
>> website.
>>
>> I've been working with an NGO in Chennai,India to improve the
>> accessibility of their work around flood management, and have found the CMS
>> a really useful tool to merge reports and Geonode spatial data together in
>> a way that readers can engage with. Here's an example:
>>
>> http://chennaifloodmanagement.org/en/projects/cag-flood-inundation-mapping/
>>
>> To achieve this outcome, there's basically two steps. I'd be interested

3 of 5 01/04/2017 11:50
>> in collaborating with anyone who would like to get involved in either of
>> these.
>>
>> *1. Integrating Geonode with DjangoCMS*
>> Current status:
>> I've bolted these two together with sticky tape and paper glue to
>> demonstrate what might be possible on the Chennai project :) Currently I'm
>> running two separate servers & databases, with hardcoded links in each
>> project to make it look like it's all talking to each other. Apart from the
>> dev headache, major drawback here is that users need two django accounts,
>> one for editing reports in CMS and another for geonode. Yuk.
>>
>> Desired status:
>> Integrate DjangoCMS as an app under geonode. Now that geonode is running
>> on Django 1.8 this is should be possible. If I do go down this path (we
>> still need some decent traction here to justify it) I'd really appreciate
>> some guidance on how to do this in a manner that allows both easy
>> integration for other projects, but acknowledges that this isn't the core
>> use-case for geonode, so should be an optional extra (in my opinion).
>>
>> *2. Authoring geonode maps within DjangoCMS content editor. *
>> Once you're geonode/CMS webapp is up and running, your users still need
>> to be able to publish geonode maps from the CMS editor. I've written a
>> plugin to enable this. Once again, it's bare-bones, but it works and we
>> find it useful. I've pushed the code to github here:
>> https://github.com/Hydrata/geonode_cms_map
>> I'd be happy to write an install doc for this, but that's probably not
>> useful until I resolve the above integration issues. Until then it's a
>> manual deploy - feel free to reach out if you would like guidance and we
>> can work through together - I'm sure I'd learn something from this too.
>>
>> That's it from me for now, I'd love to hear any similar stories or
>> use-cases that might help guide this development in a way that's useful for
>> all.
>>
>> thanks
>>
>> David Kennewell

4 of 5 01/04/2017 11:50
>> Water Resources Engineer
>> Hydrata.com
>> +971 55 409 7378
>> david.kennewell at hydrata.com
>> https://ae.linkedin.com/in/davekennewell
>>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>>
>
>
> --
> Jess
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160629/bf8d2031/attachment-0001.html>

Previous message (by thread): [GeoNode-users] Geonode and Django Content Management System
Next message (by thread): [GeoNode-users] database update error
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the geonode-users mailing list

5 of 5 01/04/2017 11:50

You might also like