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_KEYz�RECAPTCHA_PRIVATE_KEY or RECAPTCHA_PUBLIC_KEY is making use of the Google test keys and will not behave as expected in a production environmentzÝUpdate 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   