[GeoNode-users] urlconf is catching url slugs from third party apps (django-wiki)
Jesus
gesusjl at gmail.com
Mon Apr 27 19:31:48 PDT 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150427/de25b5c3/attachment.html>
More information about the geonode-users
mailing list