annotate custom_search/apps.py @ 924:78b459d4ab17

App refactor for custom_search for Django 1.7.7. upgrade. This commit prevents a lot of Django warnings by creating our Haystack signal processor as part of the custom_search apps' ready() method.
author Brian Neal <bgneal@gmail.com>
date Thu, 09 Apr 2015 19:43:07 -0500
parents
children
rev   line source
bgneal@924 1 from django.apps import AppConfig
bgneal@924 2
bgneal@924 3
bgneal@924 4 class CustomSearchConfig(AppConfig):
bgneal@924 5 name = 'custom_search'
bgneal@924 6 verbose_name = 'Custom Search'
bgneal@924 7
bgneal@924 8 def ready(self):
bgneal@924 9 import custom_search.receivers