B
    Wvg                 @   s4   d dl mZ d dlmZ d dlmZmZ dd ZdS )    )settings)checks)TEST_PRIVATE_KEYTEST_PUBLIC_KEYc             K   sH   g }t tdt}t tdt}|tks,|tkrD|tjddddg |S )NZRECAPTCHA_PRIVATE_KEYZRECAPTCHA_PUBLIC_KEYzRECAPTCHA_PRIVATE_KEY or RECAPTCHA_PUBLIC_KEY is making use of the Google test keys and will not behave as expected in a production environmentzUpdate settings.RECAPTCHA_PRIVATE_KEY and/or settings.RECAPTCHA_PUBLIC_KEY. Alternatively this check can be ignored by adding `SILENCED_SYSTEM_CHECKS = ['django_recaptcha.recaptcha_test_key_error']` to your settings file.z)django_recaptcha.recaptcha_test_key_error)Zhintid)getattrr   r   r   extendr   Error)Zapp_configskwargserrorsZprivate_keyZ
public_key r   E/tmp/pip-install-rz9cpaf4/django-recaptcha/django_recaptcha/checks.pyrecaptcha_key_check   s    r   N)Zdjango.confr   Zdjango.corer   Zdjango_recaptcha.constantsr   r   r   r   r   r   r   <module>   s   