Hi community! Perhaps this a pure Django question, but maybe some of you have done something related to it, on DRF too.
What do you guys think is the best and fastest way to sanitize data? 1. Do I need to add any middleware to do this task for me? 2. Is it better to do that on ORM level? If so, please post some example? 3. Is it better to do that on DRF level? If so, please post some example? 4. I've noticed that Django has some *strip_tags* method to remove the html/JS code from an input. But is that the best practice? 5. Is there any settings to trigger the data sanitization on the ORM level or any other place automatically? Thank you very much in advance? Best regards, Alex -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/9809faf4-796a-441f-84a8-347ed1952d7bn%40googlegroups.com.
