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

Description

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.

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@…

Attachment: site_profiles.diff added

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

Needs documentation: set
Triage Stage: UnreviewedDesign decision needed

comment:2 Changed 9 years ago by Jacob

Triage Stage: Design decision neededSomeday/Maybe

comment:3 Changed 6 years ago by Gabriel Hurley

Component: Contrib appscontrib.sites

comment:4 Changed 6 years ago by Łukasz Rekucki

Severity: normalNormal
Type: enhancementNew feature

comment:5 Changed 5 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:6 Changed 5 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:7 Changed 4 years ago by Aymeric Augustin

Resolution: wontfix
Status: newclosed

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