Add views and templates to perform searches from the main web app

This makes it possible to render the search results on the main engine.
We still run the query on the seprate search server, so once has to be
configured in settings_local.py with the key SEARCH_DSN (standard
PostgreSQL/psycopg2 connection string)
This commit is contained in:
Magnus Hagander
2011-12-03 13:01:18 +01:00
parent efbe9fc843
commit 563790f170
7 changed files with 326 additions and 0 deletions

View File

@ -55,6 +55,8 @@ urlpatterns = patterns('',
(r'^community/weeklynews/$', 'pwn.views.index'),
(r'^community/weeklynews/pwn(\d{4})(\d{2})(\d{2})/$', 'pwn.views.post'),
(r'^search/$', 'search.views.search'),
(r'^support/professional_(support|hosting)/$', 'profserv.views.root'),
(r'^support/professional_(support|hosting)[/_](.*)/$', 'profserv.views.region'),
(r'^support/submitbug/$', 'misc.views.submitbug'),