o
    ›¨Êh­	  ã                   @   sX  d dl mZmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ dZz
edƒZeeƒZW n eyA   d	ZeeƒZY nw eed
ƒrKedƒ‚eedƒrTedƒ‚eedƒr]edƒ‚eedƒrfedƒ‚eedƒsoedƒ‚e
ejvrzede
 ƒ‚e ej¡Zeedƒr‘eejeefƒs‘edƒ‚e ¡ Zdd„ Zejrªd dlmZ ej  e¡ dS dS )é    )ÚPackageNotFoundErrorÚversion)Úsettings)ÚImproperlyConfigured)ÚVersion)ÚDEFAULT_ALIAS)ÚloadingzDaniel Lindsleyzdjango-haystackz0.0.dev0ÚHAYSTACK_SITECONFzAThe HAYSTACK_SITECONF setting is no longer used & can be removed.ÚHAYSTACK_SEARCH_ENGINEzOThe HAYSTACK_SEARCH_ENGINE setting has been replaced with HAYSTACK_CONNECTIONS.ÚHAYSTACK_ENABLE_REGISTRATIONSzMThe HAYSTACK_ENABLE_REGISTRATIONS setting is no longer used & can be removed.ÚHAYSTACK_INCLUDE_SPELLINGzeThe HAYSTACK_INCLUDE_SPELLING setting is now a per-backend setting & belongs in HAYSTACK_CONNECTIONS.ÚHAYSTACK_CONNECTIONSz-The HAYSTACK_CONNECTIONS setting is required.zLThe default alias '%s' must be included in the HAYSTACK_CONNECTIONS setting.ÚHAYSTACK_ROUTERSz<The HAYSTACK_ROUTERS setting must be either a list or tuple.c                  K   s   t  ¡ D ]}|r| ¡  qd S )N)ÚconnectionsÚallÚreset_queries)ÚkwargsÚconn© r   úC/var/www/html/env/lib/python3.10/site-packages/haystack/__init__.pyÚreset_search_queriesA   s
   €þr   )ÚsignalsN)!Úimportlib.metadatar   r   Údjango.confr   Údjango.core.exceptionsr   Úpackaging.versionr   Úhaystack.constantsr   Úhaystack.utilsr   Ú
__author__Ú__version__Úversion_infoÚhasattrr   ÚConnectionHandlerr   Ú
isinstancer   ÚlistÚtupleÚConnectionRouterÚconnection_routerr   ÚDEBUGÚdjango.corer   Údjango_signalsÚrequest_startedÚconnectr   r   r   r   Ú<module>   sd    þ
ÿ
ÿ
ÿ
ÿ

ÿÿ
ÿý