remove django captcha from project settings

remotes/origin/HEAD
Max Yakovenko 8 years ago
parent 0cd70fbbd9
commit 03cdf6855c
  1. 8
      eshop_project/settings/base.py
  2. 1
      eshop_project/urls.py

@ -51,11 +51,11 @@ INSTALLED_APPS = [
'accounts_ext', 'accounts_ext',
'index', 'index',
'contact_us', 'contact_us',
'flatpages_ext',
'debug_toolbar', 'debug_toolbar',
'registration', 'registration',
'crispy_forms', 'crispy_forms',
'captcha',
'mptt', 'mptt',
'import_export', 'import_export',
'django_feedparser', 'django_feedparser',
@ -119,12 +119,6 @@ TEMPLATES = [
# Crispy templatetags settings # Crispy templatetags settings
CRISPY_TEMPLATE_PACK = 'bootstrap' CRISPY_TEMPLATE_PACK = 'bootstrap'
# Django simple captcha settings
CAPTCHA_TEST_MODE = env.bool("CAPTCHA_TEST_MODE")
CAPTCHA_OUTPUT_FORMAT = u'%(image)s %(hidden_field)s %(text_field)s'
CAPTCHA_IMAGE_SIZE = (250, 100)
CAPTCHA_CHALLENGE_FUNCT = 'captcha.helpers.word_challenge'
# WSGI server definition # WSGI server definition
WSGI_APPLICATION = 'eshop_project.wsgi.application' WSGI_APPLICATION = 'eshop_project.wsgi.application'

@ -26,7 +26,6 @@ urlpatterns = [
re_path(r'^admin/', admin.site.urls), re_path(r'^admin/', admin.site.urls),
re_path(r'^ckeditor/', include('ckeditor_uploader.urls')), re_path(r'^ckeditor/', include('ckeditor_uploader.urls')),
re_path(r'^captcha/', include('captcha.urls')),
re_path('pages/', include('django.contrib.flatpages.urls')), re_path('pages/', include('django.contrib.flatpages.urls')),

Loading…
Cancel
Save