O'Reilly logo

Django 1.0 Web Site Development by Ayman Hourieh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

We developed an important set of features for our project in this chapter. Friend networks are very important in helping users to socialize and share interests together. These features are common in Web 2.0 applications, and now you are able to incorporate them into any Django web site.

Here is a quick summary of the Django features covered in this chapter:

  • To manually specify a name for the related attribute in a data model, pass a keyword argument called related_name to the field that creates the relationship between models.
  • You can specify several options for data models by defining a class called Meta inside the data model. Some of the possible attributes in this class are: db_table, ordering, permissions, and unique_together.
  • To send ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required