[patch] Added the ability for Site objects to have profiles.
|Reported by:||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||no||Patch needs improvement:||no|
Added the ability for Site objects to have profiles just like the User objects.
Use this in your settings.py
SITE_PROFILE_MODULE = "yourAppName.yourModel"
and make sure that model has a foreign key to the django.contrib.sites.models.Site model.
Now the Site object gets a get_profile()
This helps with multiple sites where each site had maybe a different zip code, Welcome message, etc. and it can all be edited through the admin site.
Change History (8)
comment:1 Changed 10 years ago by
|Triage Stage:||Unreviewed → Design decision needed|