Cloned DMOJ
This commit is contained in:
parent
f623974b58
commit
49dc9ff10c
513 changed files with 132349 additions and 39 deletions
11
judge/utils/recaptcha.py
Normal file
11
judge/utils/recaptcha.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
try:
|
||||
from snowpenguin.django.recaptcha2.fields import ReCaptchaField
|
||||
from snowpenguin.django.recaptcha2.widgets import ReCaptchaWidget
|
||||
except ImportError:
|
||||
ReCaptchaField = None
|
||||
ReCaptchaWidget = None
|
||||
else:
|
||||
from django.conf import settings
|
||||
if not hasattr(settings, 'RECAPTCHA_PRIVATE_KEY'):
|
||||
ReCaptchaField = None
|
||||
ReCaptchaWidget = None
|
Loading…
Add table
Add a link
Reference in a new issue