Wednesday, June 29, 2011

Getting reCaptcha for django

How I got it to work, in another blog

Things that didn't work:
http://seeknuance.com/2008/03/18/integrating-recaptcha-with-django/

(I tried the other option of http://stackoverflow.com/questions/2275806/easy-to-use-django-captcha-or-registration-app-with-captcha/2275996#2275996  and installed django-registration, but I get a error: "ImportError at /msw/register No module named backends.default")


recaptcha client installation output
recaptcha-client-1.0.6$ python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to recaptcha_client.egg-info/requires.txt
writing recaptcha_client.egg-info/PKG-INFO
writing namespace_packages to recaptcha_client.egg-info/namespace_packages.txt
writing top-level names to recaptcha_client.egg-info/top_level.txt
writing dependency_links to recaptcha_client.egg-info/dependency_links.txt
writing requirements to recaptcha_client.egg-info/requires.txt
writing recaptcha_client.egg-info/PKG-INFO
writing namespace_packages to recaptcha_client.egg-info/namespace_packages.txt
writing top-level names to recaptcha_client.egg-info/top_level.txt
writing dependency_links to recaptcha_client.egg-info/dependency_links.txt
reading manifest file 'recaptcha_client.egg-info/SOURCES.txt'
writing manifest file 'recaptcha_client.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.4-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/recaptcha
copying recaptcha/__init__.py -> build/lib/recaptcha
creating build/lib/recaptcha/client
copying recaptcha/client/__init__.py -> build/lib/recaptcha/client
copying recaptcha/client/captcha.py -> build/lib/recaptcha/client
copying recaptcha/client/mailhide.py -> build/lib/recaptcha/client
creating build/bdist.macosx-10.4-x86_64
creating build/bdist.macosx-10.4-x86_64/egg
creating build/bdist.macosx-10.4-x86_64/egg/recaptcha
copying build/lib/recaptcha/__init__.py -> build/bdist.macosx-10.4-x86_64/egg/recaptcha
creating build/bdist.macosx-10.4-x86_64/egg/recaptcha/client
copying build/lib/recaptcha/client/__init__.py -> build/bdist.macosx-10.4-x86_64/egg/recaptcha/client
copying build/lib/recaptcha/client/captcha.py -> build/bdist.macosx-10.4-x86_64/egg/recaptcha/client
copying build/lib/recaptcha/client/mailhide.py -> build/bdist.macosx-10.4-x86_64/egg/recaptcha/client
byte-compiling build/bdist.macosx-10.4-x86_64/egg/recaptcha/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.4-x86_64/egg/recaptcha/client/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.4-x86_64/egg/recaptcha/client/captcha.py to captcha.pyc
byte-compiling build/bdist.macosx-10.4-x86_64/egg/recaptcha/client/mailhide.py to mailhide.pyc
creating build/bdist.macosx-10.4-x86_64/egg/EGG-INFO
copying recaptcha_client.egg-info/PKG-INFO -> build/bdist.macosx-10.4-x86_64/egg/EGG-INFO
copying recaptcha_client.egg-info/SOURCES.txt -> build/bdist.macosx-10.4-x86_64/egg/EGG-INFO
copying recaptcha_client.egg-info/dependency_links.txt -> build/bdist.macosx-10.4-x86_64/egg/EGG-INFO
copying recaptcha_client.egg-info/namespace_packages.txt -> build/bdist.macosx-10.4-x86_64/egg/EGG-INFO
copying recaptcha_client.egg-info/requires.txt -> build/bdist.macosx-10.4-x86_64/egg/EGG-INFO
copying recaptcha_client.egg-info/top_level.txt -> build/bdist.macosx-10.4-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/recaptcha_client-1.0.6-py2.7.egg' and adding 'build/bdist.macosx-10.4-x86_64/egg' to it
removing 'build/bdist.macosx-10.4-x86_64/egg' (and everything under it)
Processing recaptcha_client-1.0.6-py2.7.egg
Copying recaptcha_client-1.0.6-py2.7.egg to /Users/haoqili/.virtualenvs/playdoh/lib/python2.7/site-packages
Adding recaptcha-client 1.0.6 to easy-install.pth file

Installed /Users/haoqili/.virtualenvs/playdoh/lib/python2.7/site-packages/recaptcha_client-1.0.6-py2.7.egg
Processing dependencies for recaptcha-client==1.0.6
Finished processing dependencies for recaptcha-client==1.0.6

No comments:

Post a Comment