# returned. url(r'^search/location/$', SAGeocoderView.as_view(), name='core_geocoder_search'), # because the following slug matches override this definition in the core # place_patterns, we reinstate it here url( r'^place/all/', PlaceKindList.as_view(), name='place_kind_all' ), url(r'^place/(?P<slug>[-\w]+)/$', SAPlaceDetailView.as_view(), name='place'), url(r'^place/(?P<slug>[-\w]+)/places/', SAPlaceDetailSub.as_view(sub_page='places'), name='place_places'), # Catch the newsletter info page to change the template used so that the signup form is injected. # NOTE - you still need to create an InfoPage with the slug 'newsletter' for this not to 404. url(r'^info/newsletter', SANewsletterPage.as_view(), {'slug': 'newsletter'}, name='info_page_newsletter'), ) # Members' interests browser urlpatterns += patterns('', url( r'^interests/$', views.SAMembersInterestsIndex.as_view(), name='sa-interests-index' ), url( r'^interests/source/$', views.SAMembersInterestsSource.as_view(), name='sa-interests-source' ),
search_urlpatterns[index] = url(r'^$', SASearchView.as_view(), name='core_search') urlpatterns += ( # We want to override the location search view, so that we can # redirect straight to the results page if there's a unique result # returned. url(r'^search/location/$', SAGeocoderView.as_view(), name='core_geocoder_search'), # Catch the newsletter info page to change the template used so that the signup form is injected. # NOTE - you still need to create an InfoPage with the slug 'newsletter' for this not to 404. url(r'^info/newsletter', SANewsletterPage.as_view(), {'slug': 'newsletter'}, name='info_page_newsletter'), url(r'^blog/(?P<slug>[\w\-]+)$', SAInfoBlogView.as_view(), name='info_blog'), ) # Members' interests browser urlpatterns += ( url(r'^interests/$', views.SAMembersInterestsIndex.as_view(), name='sa-interests-index'), url(r'^interests/source/$', views.SAMembersInterestsSource.as_view(), name='sa-interests-source'), )