o
    ˷e                     @   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r"|tjddddg |S )NRECAPTCHA_PRIVATE_KEY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 = ['captcha.recaptcha_test_key_error']` to your settings file.z captcha.recaptcha_test_key_error)hintid)getattrr   r   r   extendr   Error)app_configskwargserrorsprivate_key
public_key r   E/var/www/ideatree/venv/lib/python3.10/site-packages/captcha/checks.pyrecaptcha_key_check   s   r   N)django.confr   django.corer   captcha.constantsr   r   r   r   r   r   r   <module>   s    