O'Reilly logo

Sams Teach Yourself Django in 24 Hours by Brad Dayley

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

Chapter 22. Implementing Multiple Websites

<feature><title>What You’ll Learn in This Hour</title> <objective>

How to install the sites framework

</objective>
<objective>

How to implement the sites framework

</objective>
<objective>

How to limit access to content to one class

</objective>
<objective>

How to assign content to multiple sites

</objective>
<objective>

How to use the Site object to modify the behavior of a view function

</objective>
<objective>

How to use the CurrentSiteManager class to limit access to objects in a view function

</objective>
</feature>

The django.contrib.sites framework is a simple framework that provides a basic method of implementing multiple websites in the same Django installation. Using the sites framework, you can control ...

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