It's a Django app for checking a fields list of specified models on some profanity words and ban them.
Add "anti_profanity" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'anti_profanity', ]
Run python manage.py migrate to create the profanity model.
Run python manage.py loaddata profanities.json
Add ProfanityModerateModel to your model using inheritance for moderation specific fields. For example:
class ExampleModel(ProfanityModerateModel): _moderated_fields = ['title']
Note: if you did overriding save() method in your model class then do not forget to call super().save().
For importing a new profanity words you can add these manually via django admin or via console command:
python manange.py load_profanity_words <filepath>