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