mise-en-production
[auf_framonde.git] / project / urls / 60-framonde.py
index 3084904..af0cc8d 100644 (file)
@@ -2,12 +2,20 @@ from cms.sitemaps import CMSSitemap
 #from filebrowser.sites import site
 
 
-urlpatterns = patterns('',
+urlpatterns += patterns('',
 #    (r'^admin/filebrowser/', include(site.urls)),
+    (r'^tinymce/', include('tinymce.urls')),
     (r'^', include('project.framonde.urls')),  
 )
 
 # Search
-urlpatterns += patterns('views',
-    (r'^recherche/$', 'search'),
+from haystack.views import FacetedSearchView
+from haystack.query import SearchQuerySet
+from haystack.forms import FacetedSearchForm
+urlpatterns += patterns('',
+#    (r'^recherche/', include('haystack.urls')),
+    (r'^recherche/', FacetedSearchView(
+       searchqueryset=SearchQuerySet()\
+           .facet('region').facet('section').facet('annee_limite'),
+       form_class=FacetedSearchForm)),
 )