Add haystack index, and a view for forum search (WIP)

This commit is contained in:
Grégoire Duvauchelle
2018-10-02 12:39:55 +02:00
committed by Skia
parent a96aeba1fa
commit 9b8a881914
8 changed files with 67 additions and 1 deletions

View File

@ -26,8 +26,10 @@ from django.conf.urls import url
from forum.views import *
urlpatterns = [
url(r"^$", ForumMainView.as_view(), name="main"),
url(r"^search/$", ForumSearchView.as_view(), name="search"),
url(r"^new_forum$", ForumCreateView.as_view(), name="new_forum"),
url(r"^mark_all_as_read$", ForumMarkAllAsRead.as_view(), name="mark_all_as_read"),
url(r"^last_unread$", ForumLastUnread.as_view(), name="last_unread"),