Summary

This was a pretty demanding chapter, and you learned a lot of new information.

For starters, we looked at Django management commands. They are an important feature of Django. All Django commands that you run, such as python manage.py startapp, are management commands as well, so you should already know how powerful they can be. In bigger projects, you almost always have a few management commands to automate your tasks for you.

We also looked at how Django creates a string representation of our models using the __str__ method on our model class. It's not just used when printing to the console either. Any time you try to use your model objects as strings, even in your templates, Django uses this representation, so it's important to have a ...

Get Django Project Blueprints 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.