Пример #1
0
        'mapstory.views.mapstory_draft', {'template': 'maps/_map_view_maploom.html'},
        name='mapstory-draft'),

    # StoryTools

    url(r'^maps/(?P<mapid>\d+)/viewer$',
        'geonode.maps.views.map_view', {'template': 'maps/mapstory_map_viewer.html'},
        name='map-viewer'),
    url(r'^maps/(?P<mapid>\d+)/embed$',
        'geonode.maps.views.map_view', {'template': 'maps/mapstory_map_viewer.html'},
        name='map-viewer'),
    url(r'^mapstory/(?P<mapid>\d+)/embed$',
        'geonode.maps.views.mapstory_view', {'template': 'maps/mapstory_map_viewer.html'},
        name='mapstory-viewer'),

    url(r"^storyteller/(?P<slug>[^/]*)/$", ProfileDetail.as_view(), name="profile_detail"),
    url(r"^storyteller/delete/(?P<username>[^/]*)/$", profile_delete, name="profile_delete"),
    url(r"^storyteller/edit/(?P<username>[^/]*)/$", profile_edit, name="edit_profile"),
    url(r"^storyteller/edit/(?P<username>[^/]*)/set-notification$", set_profile_notification, name="set_profile_notification"),
    url(r'^tours/editor_tour$', TemplateView.as_view(template_name='maps/editor_tour.html'), name='editor_tour'),

    url(r'^journal$', DiaryListView.as_view(), name='diary'),
    url(r'^journal/(?P<pk>\d+)$', DiaryDetailView.as_view(), name='diary-detail'),
    url(r'^journal/write$', login_required(DiaryCreateView.as_view()), name='diary-create'),
    url(r'^journal/write/(?P<pk>\d+)$', login_required(DiaryUpdateView.as_view()), name='diary-update'),

    url(r'^organizations/create/$', organization_create, name='organization_create'),
    url(r'^organizations/(?P<slug>[^/]*)$', organization_detail, name='organization_detail'),
    url(r'^organizations/edit/(?P<slug>[^/]*)$', organization_edit, name='organization_edit'),
    url(r'^organizations/members/(?P<slug>[^/]*)$', organization_members, name='organization_members'),
    url(r'^organizations/invite/(?P<slug>[^/]*)$', organization_invite, name='organization_invite'),
Пример #2
0
     {'template': 'maps/_map_view_maploom.html'},
     name='map-edit'),
 url(r'^maps/(?P<mapid>\d+)/view2$',
     'geonode.maps.views.map_view',
     {'template': 'maps/mapstory_map_view.html'},
     name='map-view2'),
 url(r'^maps/(?P<mapid>\d+)/viewer$',
     'geonode.maps.views.map_view',
     {'template': 'maps/mapstory_map_viewer.html'},
     name='map-viewer'),
 url(r'^maps/(?P<mapid>\d+)/embed$',
     'geonode.maps.views.map_view',
     {'template': 'maps/mapstory_map_viewer.html'},
     name='map-viewer'),
 url(r"^storyteller/(?P<slug>[^/]*)/$",
     ProfileDetail.as_view(),
     name="profile_detail"),
 url(r"^storyteller/delete/(?P<username>[^/]*)/$",
     profile_delete,
     name="profile_delete"),
 url(r"^storyteller/edit/(?P<username>[^/]*)/$",
     profile_edit,
     name="edit_profile"),
 url(r'^tours/editor_tour$',
     TemplateView.as_view(template_name='maps/editor_tour.html'),
     name='editor_tour'),
 url(r'^journal$', DiaryListView.as_view(), name='diary'),
 url(r'^journal/(?P<pk>\d+)$',
     DiaryDetailView.as_view(),
     name='diary-detail'),
 url(r'^journal/write$',
Пример #3
0
urlpatterns += annotations_urls

urlpatterns += maploom_urls

urlpatterns += patterns("", url(r'', include(mapstory_api.urls)))

urlpatterns += patterns("", url(r'', include(importer_api.urls)))

urlpatterns += patterns("", url(r'', include(favorites_api.urls)))

urlpatterns += importer_urlpatterns

# this is last to catch reverse lookup from geonode views
urlpatterns += patterns("",
                        url(r"^storyteller/(?P<slug>[^/]*)/$", ProfileDetail.as_view(), name="profile_detail"),
                        url(r'^story/(?P<mapid>\d+)/remove$', map_remove, name='map_remove'))


if settings.DEBUG:
    urlpatterns = urlpatterns + patterns('',
        url(r'^testing/(?P<template>.*)$', 'mapstory.views.debug_view'),
    )

if settings.LOCAL_CONTENT:
    urlpatterns = static(settings.STATIC_URL + "assets", document_root=settings.LOCAL_ROOT + "/../../mapstory-assets", show_indexes=True) + urlpatterns

if settings.ENABLE_SOCIAL_LOGIN:
    urlpatterns += patterns('',
        url('', include('social.apps.django_app.urls', namespace='social')),
        url(r'^oauth2/', include('provider.oauth2.urls', namespace='oauth2')),