Naftuli Kay
Naftuli Kay

Reputation: 91750

Is there a way to add fields onto Django's Sites Framework?

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?

Upvotes: 2

Views: 552

Answers (1)

Cat Plus Plus
Cat Plus Plus

Reputation: 129894

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

Upvotes: 6

Related Questions