recherche: première ébauche
[auf_framonde.git] / project / aldryn_search / cms_app.py
1 from django.conf.urls import patterns, url
2 from django.utils.translation import ugettext_lazy as _
3
4 from cms.app_base import CMSApp
5 from cms.apphook_pool import apphook_pool
6
7 from .views import AldrynSearchView
8
9 from .conf import settings
10
11
12 class AldrynSearchApphook(CMSApp):
13 name = _("aldryn search")
14 urls = [patterns('',
15 url('^$', AldrynSearchView.as_view(), name='aldryn-search'),
16 ),]
17
18
19 if settings.ALDRYN_SEARCH_REGISTER_APPHOOK:
20 apphook_pool.register(AldrynSearchApphook)