Пример #1
0
 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'^initiative/(?P<slug>[^/]*)$',
     CommunityDetail.as_view(),
     name='community-detail'),
 url(r'^channels/(?P<slug>[^/]*)$',
     GroupDetail.as_view(),
     name='group_detail'),
 url(r'^get(?P<slug>\w+)$', GetPageView.as_view(), name='getpage'),
 url(r'^search/$', SearchView.as_view(), name='search'),
 url(r'^about/leadership$',
     LeaderListView.as_view(template_name='mapstory/leaders.html'),
     name='about-leaders'),
 url(r'^icons/', include('icon_commons.urls')),
 url(r'^donate$',
     LeaderListView.as_view(template_name='mapstory/donate.html'),
     name='donate'),
 url(r'^proxy/', proxy),
 url(r'^favorite/', include('geonode.contrib.favorite.urls')),
 url(r'^layers/(?P<layername>[^/]*)/upload/metadata$',
     layer_metadata,
     name="layer_upload_metadata",
     kwargs={'template': 'upload/layer_upload_metadata.html'}),
 url(r"^flag/", include('mapstory.apps.flag.urls')),
 url(r'^maps/(?P<mapid>\d+)/remove$', map_remove, name='map_remove'),
 url(r'^maps/(?P<mapid>\d+)$', map_detail, name='map_detail'),
 url(r'^layers/upload$', layer_upload, name='layer_upload'),
Пример #2
0
    url(r'^story/(?P<slug>[-\w]+)/draft$',
    'mapstory.views.draft_view', {'template': 'composer/maploom.html'}, name='maploom-map-view'),
    url(r'^frame/(?P<storyid>[^/]+)/draft','mapstory.views.draft_view',name='draft_view'),

    # StoryTools
    url(r'^maps/(?P<mapid>\d+)/viewer$', 'mapstory.views.map_view', {'template': 'viewer/story_viewer.html'}, name='map-viewer'),
    url(r'^maps/(?P<mapid>\d+)/embed$', 'mapstory.views.map_view', {'template': 'viewer/story_viewer.html'}, name='map-viewer'),
    url(r'^story/(?P<slug>[-\w]+)/embed$', 'mapstory.views.mapstory_view', {'template': 'viewer/story_viewer.html'}, name='mapstory-viewer'),

    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'^get(?P<slug>\w+)$', GetPageView.as_view(), name='getpage'),
    url(r'^search/$', SearchView.as_view(), name='search'),
    url(r'^about/leadership$', LeaderListView.as_view(template_name='mapstory/leaders.html'), name='about-leaders'),
    url(r'^icons/', include('icon_commons.urls')),
    url(r'^journal/', include('mapstory.apps.journal.urls')),

    url(r'^donate$', LeaderListView.as_view(template_name='mapstory/donate.html'), name='donate'),
    url(r'^proxy/', proxy),
    url(r'^favorite/', include('mapstory.apps.favorite.urls')),
    url(r'^notifications/', include('notification.urls')),

    url(r"^flag/", include('mapstory.apps.flag.urls')),

    url(r'^layers/create$', layer_create, name='layer_create'),
    url(r'^layers/(?P<layername>[^/]*)/viewer$', layer_detail, {'template': 'viewer/layer_viewer.html'}, name="layer_viewer"),
    url(r'^layers/(?P<layername>[^/]*)/remove$', layer_remove, name="layer_remove"),
    url(r'^layers/notify-download$', notify_download, name='notify-layer-download'),
    url(r'^layers/download-append-csv$', download_append_csv, name='download_append_csv'),
Пример #3
0
    url(r'^organizations/members/(?P<slug>[^/]*)$', organization_members, name='organization_members'),
    url(r'^organizations/invite/(?P<slug>[^/]*)$', organization_invite, name='organization_invite'),
    url(r'^organizations/(?P<slug>[^/]*)/members_add/$', organization_members_add, name='organization_members_add'),
    url(r'^organizations/(?P<slug>[^/]*)/member_remove/(?P<username>.+)$', organization_member_remove,
        name='organization_member_remove'),
    url(r'^initiatives/create/$', initiative_create, name='initiative_create'),
    url(r'^initiatives/(?P<slug>[^/]*)$', initiative_detail, name='initiative_detail'),
    url(r'^initiatives/edit/(?P<slug>[^/]*)$', initiative_edit, name='initiative_edit'),
    url(r'^initiatives/members/(?P<slug>[^/]*)$', initiative_members, name='initiative_members'),
    url(r'^initiatives/invite/(?P<slug>[^/]*)$', initiative_invite, name='initiative_invite'),
    url(r'^initiatives/(?P<slug>[^/]*)/members_add/$', initiative_members_add, name='initiative_members_add'),
    url(r'^initiatives/(?P<slug>[^/]*)/member_remove/(?P<username>.+)$', initiative_member_remove, name='initiative_member_remove'),

    url(r'^get(?P<slug>\w+)$', GetPageView.as_view(), name='getpage'),
    url(r'^search/$', SearchView.as_view(), name='search'),
    url(r'^about/leadership$', LeaderListView.as_view(template_name='mapstory/leaders.html'), name='about-leaders'),
    url(r'^icons/', include('icon_commons.urls')),

    url(r'^donate$', LeaderListView.as_view(template_name='mapstory/donate.html'), name='donate'),
    url(r'^proxy/', proxy),
    url(r'^favorite/', include('geonode.contrib.favorite.urls')),
    url(r'^notifications/', include('notification.urls')),
    url(r'^layers/(?P<layername>[^/]*)/upload/metadata$', layer_metadata, name="layer_upload_metadata", kwargs={'template':'upload/layer_upload_metadata.html'}),

    url(r"^flag/", include('mapstory.apps.flag.urls')),

    url(r'^layers/upload$', layer_upload, name='layer_upload'),
    url(r'^layers/create$', layer_create, name='layer_create'),
    url(r'^layers/append$', layer_append, name='layer_append'),
    url(r'^layers/(?P<layername>[^/]*)/metadata$', layer_metadata, name="layer_metadata"),
    url(r'^layers/(?P<layername>[^/]*)/remove$', layer_remove, name="layer_remove"),
Пример #4
0
     name="organization_member_remove",
 ),
 url(r"^initiatives/create/$", initiative_create, name="initiative_create"),
 url(r"^initiatives/(?P<slug>[^/]*)$", initiative_detail, name="initiative_detail"),
 url(r"^initiatives/edit/(?P<slug>[^/]*)$", initiative_edit, name="initiative_edit"),
 url(r"^initiatives/members/(?P<slug>[^/]*)$", initiative_members, name="initiative_members"),
 url(r"^initiatives/invite/(?P<slug>[^/]*)$", initiative_invite, name="initiative_invite"),
 url(r"^initiatives/(?P<slug>[^/]*)/members_add/$", initiative_members_add, name="initiative_members_add"),
 url(
     r"^initiatives/(?P<slug>[^/]*)/member_remove/(?P<username>.+)$",
     initiative_member_remove,
     name="initiative_member_remove",
 ),
 url(r"^get(?P<slug>\w+)$", GetPageView.as_view(), name="getpage"),
 url(r"^search/$", SearchView.as_view(), name="search"),
 url(r"^about/leadership$", LeaderListView.as_view(template_name="mapstory/leaders.html"), name="about-leaders"),
 url(r"^icons/", include("icon_commons.urls")),
 url(r"^journal/", include("mapstory.journal.urls")),
 url(r"^donate$", LeaderListView.as_view(template_name="mapstory/donate.html"), name="donate"),
 url(r"^proxy/", proxy),
 url(r"^favorite/", include("geonode.contrib.favorite.urls")),
 url(r"^notifications/", include("notification.urls")),
 url(r"^flag/", include("mapstory.apps.flag.urls")),
 url(r"^layers/create$", layer_create, name="layer_create"),
 url(
     r"^layers/(?P<layername>[^/]*)/viewer$",
     layer_detail,
     {"template": "viewer/layer_viewer.html"},
     name="layer_viewer",
 ),
 url(r"^layers/(?P<layername>[^/]*)/remove$", layer_remove, name="layer_remove"),