Data privacy and data protection laws typically allow users to ask for and obtain all the data that is stored about them on a server. In this video, learn how to implement a way to allow a user to obtain a CSV file of all their data.
- [Instructor] Data privacy regulations such as GDPR … in the European Union and CCPA in the State of California … make it more important than ever … to give users a way to download all of the data … that they have put into your web app. … So we're going to give them the ability to download a csv file. … So let's start by writing a unit test. … So we're going to make a request to get the csv file … for this particular user. … And of course, the response status code should be a 200 … and we're going to get the content from the response. … And we want to make sure the csv file has a particular format. … The first line will be data for user at local host. … The second line will have a section heading comments. … There are no comments made by the user, … but there are bookings. … So in this section we print out all the field names … and then the data related to that user action. … And this is a custom date format and then the booking name. … Now there's another section for the activity log …
Skill Level Advanced
Building a Paid Membership Site with Djangowith Nick Walter1h 15m Intermediate
OWASP Top 10: #7 XSS and #8 Insecure Deserializationwith Caroline Wong26m 31s Intermediate
Building RESTful Web APIs with Djangowith Rudolf Olah1h 9m Intermediate
1. Permissions, Access Controls, Activity Logs
2. Throttling a Flood of Requests
3. Protecting Data and Data Privacy
4. 2FA: Two-Factor Authentication
5. CSRF: Cross-Site Request Forgery Protection
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.