eucanwww: add recaptcha support
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
parent
8d91237988
commit
a8e6b09125
@ -170,6 +170,7 @@ INSTALLED_APPS = (
|
|||||||
'south',
|
'south',
|
||||||
'djcelery',
|
'djcelery',
|
||||||
'registration',
|
'registration',
|
||||||
|
'captcha'
|
||||||
)
|
)
|
||||||
|
|
||||||
# A sample logging configuration. The only tangible logging
|
# A sample logging configuration. The only tangible logging
|
||||||
@ -218,6 +219,8 @@ LOGGING = {
|
|||||||
|
|
||||||
# django-registration
|
# django-registration
|
||||||
ACCOUNT_ACTIVATION_DAYS = 7
|
ACCOUNT_ACTIVATION_DAYS = 7
|
||||||
|
RECAPTCHA_PUBLIC_KEY = ""
|
||||||
|
RECAPTCHA_PRIVATE_KEY = ""
|
||||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||||
|
|
||||||
# djeuscan tasks
|
# djeuscan tasks
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls import patterns, include, url
|
from django.conf.urls import patterns, include, url
|
||||||
|
|
||||||
# Uncomment the next two lines to enable the admin:
|
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
admin.autodiscover()
|
admin.autodiscover()
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
# Uncomment the admin/doc line below to enable admin documentation:
|
# Uncomment the admin/doc line below to enable admin documentation:
|
||||||
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||||
|
|
||||||
url(r'^admin/', include(admin.site.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'^accounts/', include('registration.backends.default.urls')),
|
||||||
url(r'^', include('djeuscan.urls')),
|
url(r'^', include('djeuscan.urls')),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user