eucanwww: add recaptcha support

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
Corentin Chary 2012-08-03 21:55:23 +02:00
parent 8d91237988
commit a8e6b09125
2 changed files with 5 additions and 2 deletions

View File

@ -170,6 +170,7 @@ INSTALLED_APPS = (
'south',
'djcelery',
'registration',
'captcha'
)
# A sample logging configuration. The only tangible logging
@ -218,6 +219,8 @@ LOGGING = {
# django-registration
ACCOUNT_ACTIVATION_DAYS = 7
RECAPTCHA_PUBLIC_KEY = ""
RECAPTCHA_PRIVATE_KEY = ""
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# djeuscan tasks

View File

@ -1,15 +1,15 @@
from django.conf import settings
from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/', include('captcha.backends.default.urls')),
url(r'^accounts/', include('registration.backends.default.urls')),
url(r'^', include('djeuscan.urls')),
)