[GeoNode-users] urlconf is catching url slugs from third party apps (django-wiki)

Jesus gesusjl at gmail.com
Tue Apr 28 06:59:15 PDT 2015


That's great, thank you Simone!

On 04/28/2015 01:27 AM, Simone Dalmasso wrote:
> ok I just renamed them like this in master 
> https://github.com/GeoNode/geonode/commit/75ad7e3ffb9a52f34443a8c7f5eb31d6f4e8ead0. 
>
>
> Ciao
>
> 2015-04-28 9:11 GMT+02:00 Simone Dalmasso <simone.dalmasso at gmail.com 
> <mailto:simone.dalmasso at gmail.com>>:
>
>     Jesus, you are right, they are too generic. Although the change
>     you have done might clash with the maps urls. You can just comment
>     those two urls as they are not used at the moment in geonode. We
>     will fix them. Thanks for reporting
>
>     2015-04-28 4:31 GMT+02:00 Jesus <gesusjl at gmail.com
>     <mailto:gesusjl at gmail.com>>:
>
>         Hi all,
>
>         I've been installing the django-wiki app in my template
>         project. Everything was ok, but it looks that when it comes to
>         create new articles the url below catched everything, so slugs
>         conflict with the url from geonode.
>
>         # Featured Maps Pattens
>         urlpatterns += patterns('',
>         (r'^maps/(?P<site>[A-Za-z0-9_\-]+)/$',
>         'geonode.maps.views.featured_map'),
>         (r'^maps/(?P<site>[A-Za-z0-9_\-]+)/info$',
>         'geonode.maps.views.featured_map_info'),
>                                 )
>
>         I've been in contact with the creator of django-wiki and looks
>         like the url configuration from geonode should be more
>         specific just to avoid this kind of situations. Do you think
>         it could be better to change the url from above or should i
>         find out how to deal with url in the wiki app.
>
>         urlpatterns = patterns('',
>
>             # Static pages
>         #    url(r'^$', 'polls.views.index', name='index'),
>              url(r'^demo/$', 'demo.views.index'),
>              url(r'^notifications/', get_nyt_pattern()),
>         *url(r'^wiki/', get_wiki_pattern()),*
>          ) + urlpatterns
>
>         I temporally change the geonode url patterns to this
>
>         urlpatterns += patterns('',
>         (r'^maps/(?P<site>[A-Za-z0-9_\-]+)/$',
>         'geonode.maps.views.featured_map'),
>         (r'^maps/(?P<site>[A-Za-z0-9_\-]+)/info$',
>         'geonode.maps.views.featured_map_info'),
>                                 )
>
>         but not sure if will break geonode. Also i don't want to
>         change the master branch...
>
>
>         Thank you
>
>         Jesús
>
>         _______________________________________________
>         geonode-users mailing list
>         geonode-users at lists.osgeo.org
>         <mailto:geonode-users at lists.osgeo.org>
>         http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>
>
>
>
>     -- 
>     Simone
>
>
>
>
> -- 
> Simone

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150428/3ad87109/attachment.html>


More information about the geonode-users mailing list