Opened 10 years ago

Closed 4 years ago

#2618 closed New feature (wontfix)

[patch] Added the ability for Site objects to have profiles.

Reported by: jay@… Owned by: nobody
Component: contrib.sites Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Someday/Maybe
Has patch: yes Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Added the ability for Site objects to have profiles just like the User objects.

Use this in your
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.

Attachments (1)

site_profiles.diff (1.3 KB) - added by jay@… 10 years ago.

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by jay@…

comment:1 Changed 9 years ago by Simon G. <dev@…>

  • Needs documentation set
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 9 years ago by jacob

  • Triage Stage changed from Design decision needed to Someday/Maybe

comment:3 Changed 5 years ago by gabrielhurley

  • Component changed from Contrib apps to contrib.sites

comment:4 Changed 5 years ago by lrekucki

  • Severity changed from normal to Normal
  • Type changed from enhancement to New feature

comment:5 Changed 4 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:6 Changed 4 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:7 Changed 4 years ago by aaugustin

  • Resolution set to wontfix
  • Status changed from new to closed

User profiles haven't been very convincing. They've been deprecated in Django 1.5 in favor of custom user models.

Site profiles probably wouldn't fare better. You could make a case for custom site models. If you're interested, please send a concrete proposal to the django-developers mailing list.

Note: See TracTickets for help on using tickets.
Back to Top