Commits

George Notaras committed ffbfde0

Fixed imports

  • Participants
  • Parent commits c6629ce

Comments (0)

Files changed (5)

 
 INSTALLED_APPS = (
     ...
-    'recaptchaworks',
+    'recaptcha_works',
 )
 
 
 Configuration
 =============
-The recaptchaworks app accepts the following configuration options:
+The recaptcha_works app accepts the following configuration options:
 
 RECAPTCHA_PUBLIC_KEY: The public key as obtained from google.com/recaptcha
 
 
 Usage
 =====
-recaptchaworks provides a form field which can be attached to your forms.
+recaptcha_works provides a form field which can be attached to your forms.
 Implementing a reCaptcha protected form is a two step process.
 
 Step 1: Create the reCaptcha protected form:
 
     from django import forms
-    from recaptchaworks.fields import RecaptchaField
+    from recaptcha_works.fields import RecaptchaField
     
     class RecaptchaProtectedForm(forms.Form):
         # ... other form fields
 reCaptcha field, but it cannot be added to the form field automatically due to
 limitations of the Django framework.
 
-    from recaptchaworks.decorators import fix_recaptcha_remote_ip
+    from recaptcha_works.decorators import fix_recaptcha_remote_ip
     
     @fix_recaptcha_remote_ip
     def view(request, *args, **kwargs):

File src/recaptcha_works/decorators.py

 except ImportError:
     from django.utils.functional import wraps  # Python 2.4 fallback.
 
-from recaptchaworks.utils import post_payload_add_recaptcha_remote_ip_field
+from recaptcha_works.utils import post_payload_add_recaptcha_remote_ip_field
 
 
 def fix_recaptcha_remote_ip(view_func):

File src/recaptcha_works/fields.py

 
 from django import forms
 
-from recaptchaworks.widgets import RecaptchaWidget
-from recaptchaworks import settings
-from recaptchaworks.exceptions import RecaptchaError
-from recaptchaworks.utils import validate_recaptcha
+from recaptcha_works.widgets import RecaptchaWidget
+from recaptcha_works import settings
+from recaptcha_works.exceptions import RecaptchaError
+from recaptcha_works.utils import validate_recaptcha
 
 
 class RecaptchaField(forms.Field):

File src/recaptcha_works/utils.py

 import httplib
 from django.utils.http import urlencode
 
-from recaptchaworks.exceptions import RecaptchaError
+from recaptcha_works.exceptions import RecaptchaError
 
 
 def validate_recaptcha(remote_ip, challenge, response, private_key, use_ssl):

File src/recaptcha_works/widgets.py

 from django.utils.safestring import mark_safe
 from django.utils import simplejson
 
-from recaptchaworks import settings
+from recaptcha_works import settings
 
 
 class RecaptchaWidget(forms.Widget):