##// END OF EJS Templates
Add search view only if haystack enabled
neko259 -
r1479:20f15e36 default
parent child Browse files
Show More
@@ -1,13 +1,13 b''
1 1 from django.conf.urls import patterns, url
2 2 #from django.views.i18n import javascript_catalog
3 3
4 import neboard
4 5 from boards import views
5 6 from boards.rss import AllThreadsFeed, TagThreadsFeed, ThreadPostsFeed
6 7 from boards.views import api, tag_threads, all_threads, \
7 8 settings, all_tags, feed
8 9 from boards.views.authors import AuthorsView
9 10 from boards.views.notifications import NotificationView
10 from boards.views.search import BoardSearchView
11 11 from boards.views.static import StaticPageView
12 12 from boards.views.preview import PostPreviewView
13 13 from boards.views.random import RandomImageView
@@ -74,9 +74,6 b" urlpatterns = patterns('',"
74 74 url(r'^api/preview/$', api.api_get_preview, name='preview'),
75 75 url(r'^api/new_posts/$', api.api_get_new_posts, name='new_posts'),
76 76
77 # Search
78 url(r'^search/$', BoardSearchView.as_view(), name='search'),
79
80 77 # Notifications
81 78 url(r'^notifications/(?P<username>\w+)/$', NotificationView.as_view(), name='notifications'),
82 79 url(r'^notifications/$', NotificationView.as_view(), name='notifications'),
@@ -85,3 +82,9 b" urlpatterns = patterns('',"
85 82 url(r'^preview/$', PostPreviewView.as_view(), name='preview')
86 83
87 84 )
85
86 # Search
87 if 'haystack' in neboard.settings.INSTALLED_APPS:
88 from boards.views.search import BoardSearchView
89 urlpatterns.append(url(r'^search/$', BoardSearchView.as_view(), name='search'))
90
General Comments 0
You need to be logged in to leave comments. Login now