Chapter 11. Django revisited!

 

This chapter covers
  • Adding authentication
  • Unit-testing and functional-testing applications
  • Updating the database when models change
  • Serving static images and CSS style sheets

 

In Chapter 8, you built a simple todo list with Django, which allowed you to keep track of tasks you needed to do. Although useful for you, it’s not helpful to other people. In this chapter, we’ll look at some of the polishing steps you need to take to make your Django application useful to others. Let’s get started!

Authentication

Your application was pretty much finished from a functionality point of view—you can delete and change any of your todos, and add as many as you like. Here’s the problem: so can anyone else, if that person ...

Get Hello! Python 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.