from django.utils.translation import ugettext_lazy as _
from django.utils.translation import string_concat
from migdal import feeds, app_settings
+from migdal.views import SearchPublishedView
from migdal.helpers import i18n_patterns
pats = []
]
-# Disable en for now.
-urlpatterns = patterns('',
- url(r'^en/', handler404),
-)
-urlpatterns += i18n_patterns('',
+urlpatterns = i18n_patterns('',
# main page
url(r'^$', 'migdal.views.entry_list', name='migdal_main'),
url(r'^rss.xml$', feeds.EntriesFeed(), name='migdal_main_feed'),
'migdal.views.entry_list', name='migdal_category'),
url(string_concat(r'^', _('categories'), r'/(?P<category_slug>[^/]*)/rss.xml$'),
feeds.EntriesFeed(), name='migdal_category_feed'),
+ url(string_concat(r'^', _('search')), SearchPublishedView(), name='search'),
# type-specific views
*pats
)