Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from re import compile
- import zipfile
- from django import forms
- from django.conf import settings
- from django.core.validators import RegexValidator
- from django.forms.fields import CharField
- from django.utils.translation import ugettext_lazy as _
- # from captcha.fields import CaptchaField, CaptchaTextInput
- from captcha.fields import CaptchaField
- from nocaptcha_recaptcha.fields import NoReCaptchaField
- SIMPLE_ANSWER = 22
- SIMPLE_QUESTION = _('What is 9 + 13? (security question -just so we know you\'re not a bot)')
- slug_re = compile(r'^[-\w\/]+$')
- validate_slug = RegexValidator(slug_re, _(u"Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens."), 'invalid')
Advertisement
Add Comment
Please, Sign In to add comment