Show More
@@ -1,13 +1,13 b'' | |||||
1 | from django.conf.urls import patterns, url |
|
1 | from django.conf.urls import patterns, url | |
2 | #from django.views.i18n import javascript_catalog |
|
2 | #from django.views.i18n import javascript_catalog | |
3 |
|
3 | |||
|
4 | import neboard | |||
4 | from boards import views |
|
5 | from boards import views | |
5 | from boards.rss import AllThreadsFeed, TagThreadsFeed, ThreadPostsFeed |
|
6 | from boards.rss import AllThreadsFeed, TagThreadsFeed, ThreadPostsFeed | |
6 | from boards.views import api, tag_threads, all_threads, \ |
|
7 | from boards.views import api, tag_threads, all_threads, \ | |
7 | settings, all_tags, feed |
|
8 | settings, all_tags, feed | |
8 | from boards.views.authors import AuthorsView |
|
9 | from boards.views.authors import AuthorsView | |
9 | from boards.views.notifications import NotificationView |
|
10 | from boards.views.notifications import NotificationView | |
10 | from boards.views.search import BoardSearchView |
|
|||
11 | from boards.views.static import StaticPageView |
|
11 | from boards.views.static import StaticPageView | |
12 | from boards.views.preview import PostPreviewView |
|
12 | from boards.views.preview import PostPreviewView | |
13 | from boards.views.random import RandomImageView |
|
13 | from boards.views.random import RandomImageView | |
@@ -74,9 +74,6 b" urlpatterns = patterns(''," | |||||
74 | url(r'^api/preview/$', api.api_get_preview, name='preview'), |
|
74 | url(r'^api/preview/$', api.api_get_preview, name='preview'), | |
75 | url(r'^api/new_posts/$', api.api_get_new_posts, name='new_posts'), |
|
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 | # Notifications |
|
77 | # Notifications | |
81 | url(r'^notifications/(?P<username>\w+)/$', NotificationView.as_view(), name='notifications'), |
|
78 | url(r'^notifications/(?P<username>\w+)/$', NotificationView.as_view(), name='notifications'), | |
82 | url(r'^notifications/$', NotificationView.as_view(), name='notifications'), |
|
79 | url(r'^notifications/$', NotificationView.as_view(), name='notifications'), | |
@@ -85,3 +82,9 b" urlpatterns = patterns(''," | |||||
85 | url(r'^preview/$', PostPreviewView.as_view(), name='preview') |
|
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