Add captcha to registration form

This commit is contained in:
Grégoire Duvauchelle
2018-07-06 11:35:02 +02:00
committed by Skia
parent b2abc78694
commit afe78ea634
5 changed files with 45 additions and 1 deletions

View File

@ -74,6 +74,7 @@ INSTALLED_APPS = (
'rest_framework',
'ajax_select',
'haystack',
'captcha',
'core',
'club',
'subscription',
@ -625,3 +626,6 @@ if DEBUG:
SASS_INCLUDE_FOLDERS = [
'core/static/',
]
if 'test' in sys.argv:
CAPTCHA_TEST_MODE = True

View File

@ -72,6 +72,7 @@ urlpatterns = [
url(r'^ajax_select/', include(ajax_select_urls)),
url(r'^i18n/', include('django.conf.urls.i18n')),
url(r'^jsi18n/$', javascript_catalog, js_info_dict, name='javascript-catalog'),
url(r'^captcha/', include('captcha.urls')),
]
if settings.DEBUG: