2

I really like the idea of the sites framework for making an application functional across multiple web sites. Is there a way to add fields onto the Site object for the database, or should I just create a foreign-key one-to-one relationship?

Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411

1 Answers1

6

Yes, use a model with a unique foreign key. Django will add it to Site as a reverse relationship.

Cat Plus Plus
  • 125,936
  • 27
  • 200
  • 224