On Sep 12, 5:26 pm, Angel Cruz <mrangelc...@gmail.com> wrote:
> I use the contribs.comments module, and in its clean_comment method:
>
> if settings.COMMENTS_ALLOW_PROFANITIES == False:
>             bad_words = [w for w in settings.PROFANITIES_LIST if w in
> comment.lower()]
>             if bad_words:
>                 ....................
>
> The file is in:
> Python25\Lib\site-packages\django\contrib\comment\forms.py
>
> It came for free, so I never stepped through this code.

My mistake, you're right it's used in the comments framework. Brandon,
if you're using the built-in comments form, then set
COMMENTS_ALLOW_PROFANITIES to False and it should work.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to