#Input Sanitation and Validation

1 messages · Page 1 of 1 (latest)

ripe arrow
#

Hello, I've found a few posts on SE regarding this topic but the responses are either old or controversial and the Django doc doesn't seem to provide much info in the way to implement. Can anyone enlighten me on the process(es) for sanitizing the data when it arrives in the backend?

For instance, would I do this in the views or in serializers.py or both?

shrewd brook
#

That is the job of the Serializer (for DRF/API views) or the Form (for standard views)

ripe arrow
#

Thank you!