'pdfannotator',
# 'telemeta',
'rest_framework',
- 'rest_framework.authtoken'
+ 'rest_framework.authtoken',
)
SESSION_ENGINE = "unique_session.backends.session_backend"
UNIQUE_SESSION_WHITELIST = (1, 2042)
-# SOUTH_MIGRATION_MODULES = {
-# 'captcha': 'captcha.south_migrations',
-# }
+RECAPTCHA_PUBLIC_KEY = '6Ldq5DgbAAAAADkKg19JXlhx6F1XUQDsrXfXqSP6'
+RECAPTCHA_PRIVATE_KEY = '6Ldq5DgbAAAAAOVDOeF2kH8i2e2VSNHpqlinbpAJ'
+RECAPTCHA_REQUIRED_SCORE = 0.85
# Cache backend is optional, but recommended to speed up user agent parsing
# CACHES = {
}
-USE_WEBPACK_DEV_SERVER = DEBUG
-WEBPACK_DEV_SERVER_URL = "http://172.24.104.152:3000/"
\ No newline at end of file
+USE_WEBPACK_DEV_SERVER = False
+WEBPACK_DEV_SERVER_URL = "http://172.24.104.152:3000/"
url(r'^tinymce/', include('tinymce.urls')),
#url(r'^pdfviewer/', include('webviewer.urls')),
url(r'^pdfannotator/', include('pdfannotator.urls')),
- url(r'^captcha/', include('captcha.urls')),
url(r'^messages/', include('postman.urls', namespace='postman')),
] + ([url(r'^__debug__/', include(debug_toolbar.urls)),] if DEBUG_ENV else [])
# django-google-tools==1.1.0
django-nvd3==0.8.2
django-postman==4.2
-django-simple-captcha==0.5.14 # a maj
django-tinymce==3.3.0
-e git+https://git.parisson.com/git/django-unique-session.git@master#egg=django-unique-session
django-user-agents==0.4.0
+django-recaptcha==2.0.6
jxmlease==1.0.3
mysqlclient==2.0.3
numpy==1.20.3
import datetime
from io import BytesIO
-from captcha.fields import CaptchaField
+from captcha.fields import ReCaptchaField
+
from django import forms
from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
widget=forms.Select())
# no model
- captcha = CaptchaField()
+ captcha = ReCaptchaField()
accept = BooleanField()
class Meta:
queryset=Course.objects.all().exclude(title="Aucune").order_by('title'),
widget=forms.CheckboxSelectMultiple())
# no model
- captcha = CaptchaField()
+ captcha = ReCaptchaField()
# accept = BooleanField()
class Meta:
<span class="error">
{{ form.captcha.errors }}
</span>
- <label for="id_captcha_1">{{ form.captcha.label }}*</label>
{{ form.captcha }}
</div>
</div>
template_name='registration/password_reset_complete.html'), name="teleforma-password-reset-complete"),
- url(r'^captcha/', include('captcha.urls')),
-
# Help
url(r'^help/$', HelpView.as_view(), name="teleforma-help"),