Summary

In this chapter, we looked at how to create a mock database in Python so that we could develop our application without needing access to a real database. We also added a Google Maps widget to our application and allowed our users to easily submit a latitude and longitude by clicking on the map while being able to view the locations and descriptions of existing crimes as well.

In the next chapter, we'll look at another injection vulnerability, XSS, and talk about how to protect against it as well as input validation in general.

Get Flask By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.