annotate weblinks/urls.py @ 715:820e57e621e8
Use |safe filter on Haystack templates to get better results w/quotes.
Content was getting escaped, so text with quotes around it was seemingly
missing from the search index. This change fixed that. I verified that the
search results will not leak raw HTML to the page so this should be safe to do.
author |
Brian Neal <bgneal@gmail.com> |
date |
Tue, 17 Sep 2013 20:26:49 -0500 |
parents |
ee87ea74d46b |
children |
5ba2508939f7 |
rev |
line source |
gremmie@1
|
1 """urls for the weblinks application"""
|
bgneal@574
|
2 from django.conf.urls import patterns, url
|
gremmie@1
|
3
|
gremmie@1
|
4 urlpatterns = patterns('weblinks.views',
|
gremmie@1
|
5 url(r'^$', 'link_index', name='weblinks-main'),
|
bgneal@242
|
6 url(r'^add/$', 'add_link', name='weblinks-add_link'),
|
bgneal@242
|
7 url(r'^add/thanks/$', 'add_thanks', name='weblinks-add_thanks'),
|
bgneal@242
|
8 url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$',
|
gremmie@1
|
9 'view_links',
|
gremmie@1
|
10 name='weblinks-view_links'),
|
bgneal@20
|
11 url(r'^detail/(\d+)/$',
|
bgneal@20
|
12 'link_detail',
|
bgneal@20
|
13 name='weblinks-link_detail'),
|
bgneal@242
|
14 url(r'^new/$', 'new_links', name='weblinks-new_links'),
|
bgneal@242
|
15 url(r'^popular/$', 'popular_links', name='weblinks-popular_links'),
|
bgneal@242
|
16 url(r'^random/$', 'random_link', name='weblinks-random_link'),
|
bgneal@242
|
17 url(r'^report/(\d+)/$', 'report_link', name='weblinks-report_link'),
|
bgneal@165
|
18 url(r'^visit/(\d+)/$', 'visit', name="weblinks-visit"),
|
gremmie@1
|
19 )
|